aboutsummaryrefslogtreecommitdiffstats
path: root/btrfs-crc.c
diff options
context:
space:
mode:
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>2016-06-02 17:13:10 +0900
committerDavid Sterba <dsterba@suse.com>2016-06-03 14:49:43 +0200
commitff6fe039d366ee5dee056c333a28a98e35598197 (patch)
tree83fcbe562c7a3e1bb5fab14b53fde370bb69d3e2 /btrfs-crc.c
parent9e4e17f361ead472018692a463cdf6ddefe8f67e (diff)
downloadbtrfs-progs-ff6fe039d366ee5dee056c333a28a98e35598197.tar.gz
btrfs-progs-ff6fe039d366ee5dee056c333a28a98e35598197.tar.xz
btrfs-progs-ff6fe039d366ee5dee056c333a28a98e35598197.zip
btrfs-progs: btrfs-crc: improve usage message
- If -c is set, filename argument is ignored. - Describe about -h option Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-crc.c')
-rw-r--r--btrfs-crc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/btrfs-crc.c b/btrfs-crc.c
index 9e2a01f..27244d7 100644
--- a/btrfs-crc.c
+++ b/btrfs-crc.c
@@ -26,10 +26,12 @@ void print_usage(int status)
{
printf("usage: btrfs-crc filename\n");
printf(" print out the btrfs crc for \"filename\"\n");
- printf("usage: btrfs-crc filename -c crc [-s seed] [-l length]\n");
+ printf("usage: btrfs-crc -c crc [-s seed] [-l length]\n");
printf(" brute force search for file names with the given crc\n");
printf(" -s seed the random seed (default: random)\n");
printf(" -l length the length of the file names (default: 10)\n");
+ printf("usage: btrfs-crc -h\n");
+ printf(" print this message\n");
exit(status);
}