#include "rtsdefs.h"
void
-PreTraceHook (FILE *where)
+PreTraceHook (StgInt fd)
{
- fprintf(where, "Trace On:\n");
+/* By default, a trace msg doesn't have a header (nor a footer) */
+#if 0
+ const char msg[]="Trace On:\n";
+ write(fd,msg,sizeof(msg)-1);
+#endif
}
void
-PostTraceHook (FILE *where)
+PostTraceHook (StgInt fd)
{
- fprintf(where, "\nTrace Off.\n");
+#if 0
+ const char msg[]="\nTrace Off.\n";
+ write(fd,msg,sizeof(msg)-1);
+#endif
}
\end{code}