btrfs-progs: print-tree: fix format string on 32bit

We're passing a size_t, use the right format specifier.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-11-22 18:19:34 +01:00
parent 90969c8897
commit f8278f94ff
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ static void print_dev_stats(struct extent_buffer *eb,
if (known < size) { if (known < size) {
printf("\t\tunknown stats item bytes %u", size - known); printf("\t\tunknown stats item bytes %u", size - known);
for (i = BTRFS_DEV_STAT_VALUES_MAX; i * sizeof(__le64) < size; i++) { for (i = BTRFS_DEV_STAT_VALUES_MAX; i * sizeof(__le64) < size; i++) {
printf("\t\tunknown item %u offset %lu value %llu\n", printf("\t\tunknown item %u offset %zu value %llu\n",
i, i * sizeof(__le64), i, i * sizeof(__le64),
(unsigned long long)le64_to_cpu(values[i])); (unsigned long long)le64_to_cpu(values[i]));
} }