From: Daan De Meyer Date: Sun, 22 May 2022 12:36:07 +0000 (+0200) Subject: coredump: Fix format string type mismatch X-Git-Tag: v252-rc1~942 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08e86b15fc22a8e9f1ee0a791dfd35b2fc25e4c4;p=thirdparty%2Fsystemd.git coredump: Fix format string type mismatch Fixes #23471 --- diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index c9747416ad3..994d968d871 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -512,8 +512,8 @@ static int save_external_coredump( if (truncated) log_struct(LOG_INFO, - LOG_MESSAGE("Core file was truncated to %zu bytes.", max_size), - "SIZE_LIMIT=%zu", max_size, + LOG_MESSAGE("Core file was truncated to %"PRIu64" bytes.", max_size), + "SIZE_LIMIT=%"PRIu64, max_size, "MESSAGE_ID=" SD_MESSAGE_TRUNCATED_CORE_STR); r = fix_permissions(fd, tmp, fn, context, uid);