summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect_spewitems.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-12-30 22:17:06 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2022-12-30 22:17:06 -0700
commit9971e38110d5f90d15c7b78f396f2638b3952a96 (patch)
tree28692225122d6d9c91d826801a4986d1c850744d /cmd/btrfs-rec/inspect_spewitems.go
parentbfe111c950da328b673ed4e3f8da0503bbd793d8 (diff)
parent3d0937e9ab148c074922b0d46ed33bdbcbef85b5 (diff)
Merge branch 'lukeshu/log'
Diffstat (limited to 'cmd/btrfs-rec/inspect_spewitems.go')
-rw-r--r--cmd/btrfs-rec/inspect_spewitems.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/btrfs-rec/inspect_spewitems.go b/cmd/btrfs-rec/inspect_spewitems.go
index a4e8d69..8d71797 100644
--- a/cmd/btrfs-rec/inspect_spewitems.go
+++ b/cmd/btrfs-rec/inspect_spewitems.go
@@ -5,7 +5,6 @@
package main
import (
- "fmt"
"os"
"github.com/datawire/dlib/dlog"
@@ -16,6 +15,7 @@ import (
"git.lukeshu.com/btrfs-progs-ng/lib/btrfs"
"git.lukeshu.com/btrfs-progs-ng/lib/btrfs/btrfstree"
"git.lukeshu.com/btrfs-progs-ng/lib/btrfsprogs/btrfsutil"
+ "git.lukeshu.com/btrfs-progs-ng/lib/textui"
)
func init() {
@@ -37,13 +37,13 @@ func init() {
},
TreeWalkHandler: btrfstree.TreeWalkHandler{
Item: func(path btrfstree.TreePath, item btrfstree.Item) error {
- fmt.Printf("%s = ", path)
+ textui.Fprintf(os.Stdout, "%s = ", path)
spew.Dump(item)
os.Stdout.WriteString("\n")
return nil
},
BadItem: func(path btrfstree.TreePath, item btrfstree.Item) error {
- fmt.Printf("%s = ", path)
+ textui.Fprintf(os.Stdout, "%s = ", path)
spew.Dump(item)
os.Stdout.WriteString("\n")
return nil