btrfs-progs: print qgroup excl as unsigned

It's unsigned in the structure definition.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
Mark Fasheh 2014-05-07 13:07:15 -07:00 committed by David Sterba
parent 909131939f
commit 2dfafb4710
2 changed files with 8 additions and 8 deletions

View File

@ -893,18 +893,18 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
qg_info = btrfs_item_ptr(l, i,
struct btrfs_qgroup_info_item);
printf("\t\tgeneration %llu\n"
"\t\treferenced %lld referenced compressed %lld\n"
"\t\texclusive %lld exclusive compressed %lld\n",
"\t\treferenced %llu referenced compressed %llu\n"
"\t\texclusive %llu exclusive compressed %llu\n",
(unsigned long long)
btrfs_qgroup_info_generation(l, qg_info),
(long long)
(unsigned long long)
btrfs_qgroup_info_referenced(l, qg_info),
(long long)
(unsigned long long)
btrfs_qgroup_info_referenced_compressed(l,
qg_info),
(long long)
(unsigned long long)
btrfs_qgroup_info_exclusive(l, qg_info),
(long long)
(unsigned long long)
btrfs_qgroup_info_exclusive_compressed(l,
qg_info));
break;

View File

@ -203,11 +203,11 @@ static void print_qgroup_column(struct btrfs_qgroup *qgroup,
print_qgroup_column_add_blank(BTRFS_QGROUP_QGROUPID, len);
break;
case BTRFS_QGROUP_RFER:
len = printf("%lld", qgroup->rfer);
len = printf("%llu", qgroup->rfer);
print_qgroup_column_add_blank(BTRFS_QGROUP_RFER, len);
break;
case BTRFS_QGROUP_EXCL:
len = printf("%lld", qgroup->excl);
len = printf("%llu", qgroup->excl);
print_qgroup_column_add_blank(BTRFS_QGROUP_EXCL, len);
break;
case BTRFS_QGROUP_PARENT: