]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: Fix format string type mismatch
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 22 May 2022 12:36:07 +0000 (14:36 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 22 May 2022 17:28:38 +0000 (19:28 +0200)
Fixes #23471

src/coredump/coredump.c

index c9747416ad3c840227e7b7c7048a1c71ad426c19..994d968d871b4946029947cfceb096a2f9fcdd9a 100644 (file)
@@ -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);