Stefan Behrens
2013-Apr-22 10:17 UTC
[PATCH] Btrfs-progs: btrfs-crc: support specifying checksum in hex
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> --- btrfs-crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'': -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html