projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove outdated comment
[ghc-hetmet.git]
/
rts
/
RtsMessages.c
diff --git
a/rts/RtsMessages.c
b/rts/RtsMessages.c
index
ef5c5a2
..
6e75abc
100644
(file)
--- a/
rts/RtsMessages.c
+++ b/
rts/RtsMessages.c
@@
-9,6
+9,8
@@
#include "PosixSource.h"
#include "Rts.h"
#include "PosixSource.h"
#include "Rts.h"
+#include "eventlog/EventLog.h"
+
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@
-161,6
+163,10
@@
rtsFatalInternalErrorFn(const char *s, va_list ap)
fflush(stderr);
}
fflush(stderr);
}
+#ifdef TRACING
+ if (RtsFlags.TraceFlags.tracing == TRACE_EVENTLOG) endEventLogging();
+#endif
+
abort();
// stg_exit(EXIT_INTERNAL_ERROR);
}
abort();
// stg_exit(EXIT_INTERNAL_ERROR);
}
@@
-187,7
+193,7
@@
rtsErrorMsgFn(const char *s, va_list ap)
#endif
{
/* don't fflush(stdout); WORKAROUND bug in Linux glibc */
#endif
{
/* don't fflush(stdout); WORKAROUND bug in Linux glibc */
- if (prog_argv != NULL && prog_name != NULL) {
+ if (prog_name != NULL) {
fprintf(stderr, "%s: ", prog_name);
}
vfprintf(stderr, s, ap);
fprintf(stderr, "%s: ", prog_name);
}
vfprintf(stderr, s, ap);