diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-10 17:47:21 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-11 00:44:30 -0600 |
commit | 41ef03aabf8d6db4f926480fc5ddfec014e342d3 (patch) | |
tree | bd3ca046703fa958fe995696502475735be670d1 /cmd | |
parent | bde202f286461ab575dc7e3d83f996d9a5f4a6ec (diff) |
lib/btrfsprogs: Don't hard-code stdout or stderr
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/btrfs-clear-bad-nodes/main.go | 2 | ||||
-rw-r--r-- | cmd/btrfs-dump-tree/main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/btrfs-clear-bad-nodes/main.go b/cmd/btrfs-clear-bad-nodes/main.go index f4b25f1..f44b1f7 100644 --- a/cmd/btrfs-clear-bad-nodes/main.go +++ b/cmd/btrfs-clear-bad-nodes/main.go @@ -34,5 +34,5 @@ func Main(imgfilenames ...string) (err error) { maybeSetErr(fs.Close()) }() - return btrfsrepair.ClearBadNodes(fs) + return btrfsrepair.ClearBadNodes(os.Stdout, os.Stderr, fs) } diff --git a/cmd/btrfs-dump-tree/main.go b/cmd/btrfs-dump-tree/main.go index cf29ea4..2770849 100644 --- a/cmd/btrfs-dump-tree/main.go +++ b/cmd/btrfs-dump-tree/main.go @@ -37,5 +37,5 @@ func Main(imgfilename string) (err error) { }() fmt.Printf("btrfs-progs v%v\n", version) - return btrfsinspect.DumpTrees(fs) + return btrfsinspect.DumpTrees(os.Stdout, os.Stderr, fs) } |