diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-12-24 23:49:01 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-12-26 23:55:42 -0700 |
commit | a90e25a1298602c30d0b9cc0c86acede7c8e4ed4 (patch) | |
tree | ef980f2d278e373bd7331f56299bfe34b87e8d8a /cmd/btrfs-rec/inspect_spewitems.go | |
parent | 92b20f73e93a6a08030ad6100ca70d4c9668537e (diff) |
tree-wide: Outlaw fmt.Print, force textui
Diffstat (limited to 'cmd/btrfs-rec/inspect_spewitems.go')
-rw-r--r-- | cmd/btrfs-rec/inspect_spewitems.go | 6 |
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 |