aboutsummaryrefslogtreecommitdiffstats
path: root/btrfs-crc.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-04-22 12:17:51 +0200
committerDavid Sterba <dsterba@suse.cz>2013-04-23 19:10:12 +0200
commitb0d43ad859afbc708fafaa47197fb746400e4eaa (patch)
tree10f7ff90f1b0fc8dd175b011db33ec8bbc8148a7 /btrfs-crc.c
parent2417dd4cc99253db7daf8d694c6ce5c543d55def (diff)
downloadbtrfs-progs-b0d43ad859afbc708fafaa47197fb746400e4eaa.tar.gz
btrfs-progs-b0d43ad859afbc708fafaa47197fb746400e4eaa.tar.xz
btrfs-progs-b0d43ad859afbc708fafaa47197fb746400e4eaa.zip
Btrfs-progs: btrfs-crc: support specifying checksum in hex
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'btrfs-crc.c')
-rw-r--r--btrfs-crc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-crc.c b/btrfs-crc.c
index 6e21a0e..e4cda43 100644
--- a/btrfs-crc.c
+++ b/btrfs-crc.c
@@ -49,7 +49,7 @@ int main(int argc, char **argv)
length = atol(optarg);
break;
case 'c':
- checksum = atol(optarg);
+ sscanf(optarg, "%li", &checksum);
loop = 1;
break;
case 's':