summaryrefslogtreecommitdiff
path: root/rts/eventlog
diff options
context:
space:
mode:
authorViktor Dukhovni <ietf-dane@dukhovni.org>2023-01-16 14:54:11 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-17 06:36:47 -0500
commitfc02f3bbb5f47f880465e22999ba9794f658d8f6 (patch)
tree3d9b747fefdf7f946824b6a456d01fa9d18a1b61 /rts/eventlog
parentdbbab95debd4405acdfaceee2be547fd69d9bb6f (diff)
downloadhaskell-fc02f3bbb5f47f880465e22999ba9794f658d8f6.tar.gz
Avoid unnecessary printf warnings in EventLog.c
Fixes #22778
Diffstat (limited to 'rts/eventlog')
-rw-r--r--rts/eventlog/EventLog.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c
index 66ae98b019..73127ddaa6 100644
--- a/rts/eventlog/EventLog.c
+++ b/rts/eventlog/EventLog.c
@@ -759,10 +759,8 @@ 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 %"
- FMT_Int " out of %" FMT_Int " args",
- (long long) i,
- (long long) argc);
+ errorBelch("Event size exceeds EVENT_PAYLOAD_SIZE_MAX, record only "
+ "%d out of %d args", i, argc);
argc = i;
break;
} else {