mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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>
This commit is contained in:
parent
7f355587f5
commit
f4b2b84904
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user