From fc02f3bbb5f47f880465e22999ba9794f658d8f6 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Mon, 16 Jan 2023 14:54:11 -0500 Subject: Avoid unnecessary printf warnings in EventLog.c Fixes #22778 --- rts/eventlog/EventLog.c | 6 ++---- 1 file 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 { -- cgit v1.2.1