summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-06-03 13:37:45 +0200
committerDavid Sterba <dsterba@suse.cz>2014-08-22 14:39:32 +0200
commite2a157f380aa33a264eab8e21280ea8bbc10d67e (patch)
tree30e8cee60451eb3b1f0d377b28864013336dc268
parent11ffe235315db4c4837f2a0f9ae190747b28b1d5 (diff)
btrfs-progs: fix compiler warning
gcc 4.9.0 gives a warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘u64’ Using %llu and casting to unsigned long long (same as bytenr) fixes this. Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--btrfs-select-super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btrfs-select-super.c b/btrfs-select-super.c
index 15e69212..d7cd1873 100644
--- a/btrfs-select-super.c
+++ b/btrfs-select-super.c
@@ -100,8 +100,8 @@ int main(int ac, char **av)
/* we don't close the ctree or anything, because we don't want a real
* transaction commit. We just want the super copy we pulled off the
* disk to overwrite all the other copies
- */
- printf("using SB copy %d, bytenr %llu\n", num,
+ */
+ printf("using SB copy %llu, bytenr %llu\n", (unsigned long long)num,
(unsigned long long)bytenr);
return ret;
}