File 5000-coredump-Fix-format-string-type-mismatch.patch of Package systemd-mini
From 78fb02e7318bd4e9091787851f08ce3dd3b87cb3 Mon Sep 17 00:00:00 2001
From: Daan De Meyer <daan.j.demeyer@gmail.com>
Date: Sun, 22 May 2022 14:36:07 +0200
Subject: [PATCH 5000/5003] coredump: Fix format string type mismatch
Fixes #23471
(cherry picked from commit 08e86b15fc22a8e9f1ee0a791dfd35b2fc25e4c4)
---
src/coredump/coredump.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 48f4c6df9d..f15c5ac0a0 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -389,8 +389,8 @@ static int save_external_coredump(
*ret_truncated = r == 1;
if (*ret_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);
if (fstat(fd, &st) < 0) {
--
2.35.3