From 1ea4e7bd8d9d0f0ef317558c627e6fa069950e8d Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Fri, 7 Apr 2017 13:35:59 +0200 Subject: [PATCH] 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 --- sys-utils/chmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2