diff --git a/rts/Trace.c b/rts/Trace.c
index a26a919..81b43f7 100644
|
a
|
b
|
|
| 278 | 278 | va_end(ap); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | | void traceUserMsg(Capability *cap, char *msg) |
| | 281 | static void traceFormatUserMsg(Capability *cap, char *msg, ...) |
| 282 | 282 | { |
| | 283 | va_list ap; |
| | 284 | va_start(ap,msg); |
| 283 | 285 | #ifdef DEBUG |
| 284 | 286 | if (RtsFlags.TraceFlags.tracing == TRACE_STDERR) { |
| 285 | | traceCap_stderr(cap, msg, NULL); |
| | 287 | traceCap_stderr(cap, msg, ap); |
| 286 | 288 | } else |
| 287 | 289 | #endif |
| 288 | 290 | { |
| 289 | 291 | if (eventlog_enabled) { |
| 290 | | postUserMsg(cap, msg); |
| | 292 | postUserMsg(cap, msg, ap); |
| 291 | 293 | } |
| 292 | 294 | } |
| | 295 | va_end(ap); |
| | 296 | } |
| | 297 | |
| | 298 | void traceUserMsg(Capability *cap, char *msg) |
| | 299 | { |
| | 300 | traceFormatUserMsg(cap, "%s", msg); |
| 293 | 301 | } |
| 294 | 302 | |
| 295 | 303 | void traceThreadStatus_ (StgTSO *tso USED_IF_DEBUG) |
diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c
index 65eff8a..4f6141e 100644
|
a
|
b
|
|
| 428 | 428 | postLogMsg(&capEventBuf[cap->no], EVENT_LOG_MSG, msg, ap); |
| 429 | 429 | } |
| 430 | 430 | |
| 431 | | void postUserMsg(Capability *cap, char *msg) |
| | 431 | void postUserMsg(Capability *cap, char *msg, va_list ap) |
| 432 | 432 | { |
| 433 | | postLogMsg(&capEventBuf[cap->no], EVENT_USER_MSG, msg, NULL); |
| | 433 | postLogMsg(&capEventBuf[cap->no], EVENT_USER_MSG, msg, ap); |
| 434 | 434 | } |
| 435 | 435 | |
| 436 | 436 | void closeBlockMarker (EventsBuf *ebuf) |
diff --git a/rts/eventlog/EventLog.h b/rts/eventlog/EventLog.h
index 557ee77..224cd04 100644
|
a
|
b
|
|
| 33 | 33 | |
| 34 | 34 | void postMsg(char *msg, va_list ap); |
| 35 | 35 | |
| 36 | | void postUserMsg(Capability *cap, char *msg); |
| | 36 | void postUserMsg(Capability *cap, char *msg, va_list ap); |
| 37 | 37 | |
| 38 | 38 | void postCapMsg(Capability *cap, char *msg, va_list ap); |
| 39 | 39 | |