projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash when using printf format specifiers in traceEvent (#3874)
[ghc-hetmet.git]
/
rts
/
eventlog
/
EventLog.c
diff --git
a/rts/eventlog/EventLog.c
b/rts/eventlog/EventLog.c
index
ede1615
..
7026a2a
100644
(file)
--- a/
rts/eventlog/EventLog.c
+++ b/
rts/eventlog/EventLog.c
@@
-448,9
+448,9
@@
void postCapMsg(Capability *cap, char *msg, va_list ap)
postLogMsg(&capEventBuf[cap->no], EVENT_LOG_MSG, msg, ap);
}
postLogMsg(&capEventBuf[cap->no], EVENT_LOG_MSG, msg, ap);
}
-void postUserMsg(Capability *cap, char *msg)
+void postUserMsg(Capability *cap, char *msg, va_list ap)
{
{
- postLogMsg(&capEventBuf[cap->no], EVENT_USER_MSG, msg, NULL);
+ postLogMsg(&capEventBuf[cap->no], EVENT_USER_MSG, msg, ap);
}
void closeBlockMarker (EventsBuf *ebuf)
}
void closeBlockMarker (EventsBuf *ebuf)