summaryrefslogtreecommitdiffstats
path: root/lib/label/label.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-07-13 21:23:48 +0000
committerMikulas Patocka <mpatocka@redhat.com>2009-07-13 21:23:48 +0000
commitf4b2b849049719b704132d87a2c0f62d130e0097 (patch)
treec7c9d9e99ce71600c84d5f95730a62b250beb674 /lib/label/label.c
parent7f355587f5285ffdf34da8cd96ba81d0db47a8ff (diff)
downloadlvm2-f4b2b849049719b704132d87a2c0f62d130e0097.tar.gz
lvm2-f4b2b849049719b704132d87a2c0f62d130e0097.tar.xz
lvm2-f4b2b849049719b704132d87a2c0f62d130e0097.zip
Suppress warning on 64-bit big-endian computers (Sparc 64).
xlate64 produces unsigned long long type, but PRIu64 is defined to accept argument unsigned long type (on 64-bit machines). On existing machines, both types have the same size, so it works, but it is still wrong and produces a warning. Fix it by using a cast to uint64_t --- according to the standard, PRIu64 argument matches type uint64_t. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'lib/label/label.c')
-rw-r--r--lib/label/label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/label/label.c b/lib/label/label.c
index 25f520a0..7b5fd8f3 100644
--- a/lib/label/label.c
+++ b/lib/label/label.c
@@ -138,7 +138,7 @@ static struct labeller *_find_labeller(struct device *dev, char *buf,
log_info("%s: Label for sector %" PRIu64
" found at sector %" PRIu64
" - ignoring", dev_name(dev),
- xlate64(lh->sector_xl),
+ (uint64_t)xlate64(lh->sector_xl),
sector + scan_sector);
continue;
}