Skip to content

Commit e2a157f

Browse files
eworm-dekdave
authored andcommitted
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>
1 parent 11ffe23 commit e2a157f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

btrfs-select-super.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ int main(int ac, char **av)
100100
/* we don't close the ctree or anything, because we don't want a real
101101
* transaction commit. We just want the super copy we pulled off the
102102
* disk to overwrite all the other copies
103-
*/
104-
printf("using SB copy %d, bytenr %llu\n", num,
103+
*/
104+
printf("using SB copy %llu, bytenr %llu\n", (unsigned long long)num,
105105
(unsigned long long)bytenr);
106106
return ret;
107107
}

0 commit comments

Comments
 (0)