diff options
author | Anton Blanchard <anton@samba.org> | 2011-04-07 21:02:04 +1000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-10-25 09:18:57 -0400 |
commit | fa81a569ac5e4ca426cd8e3fc8a0f181c58a8fae (patch) | |
tree | e980b0ee1e50208622f6ca63a37814ff9933397e /btrfs-list.c | |
parent | fcdc0929c6ea051dad59818210df53fd03eaf4b1 (diff) |
btrfs-progs: cast u64 to long long to avoid printf warnings
When building on ppc64 I hit a number of warnings in printf:
btrfs-map-logical.c:69: error: format ‘%Lu’ expects type ‘long long
unsigned int’, but argument 4 has type ‘u64’
Fix them.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
Diffstat (limited to 'btrfs-list.c')
-rw-r--r-- | btrfs-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/btrfs-list.c b/btrfs-list.c index abcc2f4d..f804dfc6 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -249,7 +249,8 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri) break; } } - printf("ID %llu top level %llu path %s\n", ri->root_id, top_id, + printf("ID %llu top level %llu path %s\n", + (unsigned long long)ri->root_id, (unsigned long long)top_id, full_path); free(full_path); return 0; |