From: Ruediger Meier Date: Fri, 7 Apr 2017 11:35:59 +0000 (+0200) Subject: chmem: don't use scanf format for printf X-Git-Tag: v2.30-rc1~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ea4e7bd8d9d0f0ef317558c627e6fa069950e8d;p=thirdparty%2Futil-linux.git 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 Signed-off-by: Ruediger Meier --- diff --git a/sys-utils/chmem.c b/sys-utils/chmem.c index ad394ac4c4..44733bf769 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); }