[Git][ghc/ghc][master] Avoid unnecessary printf warnings in EventLog.c
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Tue Jan 17 11:37:05 UTC 2023
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
fc02f3bb by Viktor Dukhovni at 2023-01-17T06:36:47-05:00
Avoid unnecessary printf warnings in EventLog.c
Fixes #22778
- - - - -
1 changed file:
- rts/eventlog/EventLog.c
Changes:
=====================================
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 {
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fc02f3bbb5f47f880465e22999ba9794f658d8f6
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fc02f3bbb5f47f880465e22999ba9794f658d8f6
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230117/589a1e8d/attachment.html>
More information about the ghc-commits
mailing list