summaryrefslogtreecommitdiff
path: root/btrfs-image.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-03 20:30:50 +0200
committerDavid Sterba <dsterba@suse.com>2016-09-05 12:20:24 +0200
commit57d1cbd867311d99a2ae5e3cdcffd04460ec372a (patch)
treea1bf6a0e4f4db545b60ab07fa8f5aae9a6e13f68 /btrfs-image.c
parentf919530b3a1d5876d3ce6213dbb0b65b853f2ba8 (diff)
btrfs-progs: print help test to stdout
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-image.c')
-rw-r--r--btrfs-image.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/btrfs-image.c b/btrfs-image.c
index af5437b4..3039c0c1 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -2716,17 +2716,17 @@ out:
static void print_usage(int ret)
{
- fprintf(stderr, "usage: btrfs-image [options] source target\n");
- fprintf(stderr, "\t-r \trestore metadump image\n");
- fprintf(stderr, "\t-c value\tcompression level (0 ~ 9)\n");
- fprintf(stderr, "\t-t value\tnumber of threads (1 ~ 32)\n");
- fprintf(stderr, "\t-o \tdon't mess with the chunk tree when restoring\n");
- fprintf(stderr, "\t-s \tsanitize file names, use once to just use garbage, use twice if you want crc collisions\n");
- fprintf(stderr, "\t-w \twalk all trees instead of using extent tree, do this if your extent tree is broken\n");
- fprintf(stderr, "\t-m \trestore for multiple devices\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "\tIn the dump mode, source is the btrfs device and target is the output file (use '-' for stdout).\n");
- fprintf(stderr, "\tIn the restore mode, source is the dumped image and target is the btrfs device/file.\n");
+ printf("usage: btrfs-image [options] source target\n");
+ printf("\t-r \trestore metadump image\n");
+ printf("\t-c value\tcompression level (0 ~ 9)\n");
+ printf("\t-t value\tnumber of threads (1 ~ 32)\n");
+ printf("\t-o \tdon't mess with the chunk tree when restoring\n");
+ printf("\t-s \tsanitize file names, use once to just use garbage, use twice if you want crc collisions\n");
+ printf("\t-w \twalk all trees instead of using extent tree, do this if your extent tree is broken\n");
+ printf("\t-m \trestore for multiple devices\n");
+ printf("\n");
+ printf("\tIn the dump mode, source is the btrfs device and target is the output file (use '-' for stdout).\n");
+ printf("\tIn the restore mode, source is the dumped image and target is the btrfs device/file.\n");
exit(ret);
}