From 471486b91b05cb466b0edb3f8f483d7dfcef7244 Mon Sep 17 00:00:00 2001 From: Ben Gamari <ben@smart-cactus.org> Date: Mon, 19 Dec 2022 12:25:34 -0500 Subject: [PATCH] rts: Fix printf format mismatch --- rts/eventlog/EventLog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c index 73127ddaa631..d6b41c43784a 100644 --- a/rts/eventlog/EventLog.c +++ b/rts/eventlog/EventLog.c @@ -759,8 +759,10 @@ void postCapsetVecEvent (EventTypeNum tag, // 1 + strlen to account for the trailing \0, used as separator int increment = 1 + strlen(argv[i]); if (size + increment > EVENT_PAYLOAD_SIZE_MAX) { - errorBelch("Event size exceeds EVENT_PAYLOAD_SIZE_MAX, record only " - "%d out of %d args", i, argc); + errorBelch("Event size exceeds EVENT_PAYLOAD_SIZE_MAX, record only %" + FMT_Word " out of %" FMT_Word " args", + (StgWord) i, + (StgWord) argc); argc = i; break; } else { -- GitLab