mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: cast walk flags to uint64_t when logging.
Walk flags are ULL constants; cast the result to a uint64_t before logging with a FMTx64 format specifier to avoid a compiler warning: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘long long unsigned int’
This commit is contained in:
parent
f1dd0258f1
commit
4d4f48af9f
@ -1399,7 +1399,7 @@ int dm_stats_walk_init(struct dm_stats *dms, uint64_t flags)
|
|||||||
|
|
||||||
if (flags & ~DM_STATS_WALK_MASK) {
|
if (flags & ~DM_STATS_WALK_MASK) {
|
||||||
log_error("Unknown value in walk flags: 0x" FMTx64,
|
log_error("Unknown value in walk flags: 0x" FMTx64,
|
||||||
flags & ~DM_STATS_WALK_MASK);
|
(uint64_t) (flags & ~DM_STATS_WALK_MASK));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
dms->walk_flags = flags;
|
dms->walk_flags = flags;
|
||||||
|
Loading…
Reference in New Issue
Block a user