btrfs-progs: fix compiler warning
authorChristian Hesse <mail@eworm.de>
Tue, 3 Jun 2014 11:37:45 +0000 (13:37 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:39:32 +0000 (14:39 +0200)
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>
btrfs-select-super.c

index 15e6921..d7cd187 100644 (file)
@@ -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;
 }