diff options
author | Ruediger Meier | 2017-04-07 13:35:59 +0200 |
---|---|---|
committer | Karel Zak | 2017-04-10 15:41:21 +0200 |
commit | 1ea4e7bd8d9d0f0ef317558c627e6fa069950e8d (patch) | |
tree | 6f106bac9cb528fa33e1a873b2c0ff82072336a5 /sys-utils/chmem.c | |
parent | misc: fix some printf format strings (diff) | |
download | kernel-qcow2-util-linux-1ea4e7bd8d9d0f0ef317558c627e6fa069950e8d.tar.gz kernel-qcow2-util-linux-1ea4e7bd8d9d0f0ef317558c627e6fa069950e8d.tar.xz kernel-qcow2-util-linux-1ea4e7bd8d9d0f0ef317558c627e6fa069950e8d.zip |
chmem: don't use scanf format for printf
The compiler had not complained here because both macros are
probably the same.
But gettext issued a funny warning:
sys-utils/chmem.c:67: warning: Although being used in a format string position, the msgid is not a valid C format string. Reason: The string ends in the middle of a directive.
CC: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/chmem.c')
-rw-r--r-- | sys-utils/chmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/chmem.c b/sys-utils/chmem.c index ad394ac4c..44733bf76 100644 --- a/sys-utils/chmem.c +++ b/sys-utils/chmem.c @@ -64,7 +64,7 @@ static void idxtostr(struct chmem_desc *desc, uint64_t idx, char *buf, size_t bu start = idx * desc->block_size; end = start + desc->block_size - 1; snprintf(buf, bufsz, - _("Memory Block %"SCNu64" (0x%016"PRIx64"-0x%016"PRIx64")"), + _("Memory Block %"PRIu64" (0x%016"PRIx64"-0x%016"PRIx64")"), idx, start, end); } |