diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2023-01-16 14:54:11 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-17 06:36:47 -0500 |
commit | fc02f3bbb5f47f880465e22999ba9794f658d8f6 (patch) | |
tree | 3d9b747fefdf7f946824b6a456d01fa9d18a1b61 /rts/eventlog | |
parent | dbbab95debd4405acdfaceee2be547fd69d9bb6f (diff) | |
download | haskell-fc02f3bbb5f47f880465e22999ba9794f658d8f6.tar.gz |
Avoid unnecessary printf warnings in EventLog.c
Fixes #22778
Diffstat (limited to 'rts/eventlog')
-rw-r--r-- | rts/eventlog/EventLog.c | 6 |
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 { |