summaryrefslogtreecommitdiff
path: root/cmd/btrfs-clear-bad-nodes/main.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 17:47:21 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-11 00:44:30 -0600
commit41ef03aabf8d6db4f926480fc5ddfec014e342d3 (patch)
treebd3ca046703fa958fe995696502475735be670d1 /cmd/btrfs-clear-bad-nodes/main.go
parentbde202f286461ab575dc7e3d83f996d9a5f4a6ec (diff)
lib/btrfsprogs: Don't hard-code stdout or stderr
Diffstat (limited to 'cmd/btrfs-clear-bad-nodes/main.go')
-rw-r--r--cmd/btrfs-clear-bad-nodes/main.go2
1 files changed, 1 insertions, 1 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)
}