X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fruntime%2Fhooks%2FErrorHdr.lc;h=9e32f4b23bc837b218ed3d31c64dc287f93a9c61;hb=967cc47f37cb93a5e2b6df7822c9a646f0428247;hp=d71a3a9b2e8122b41522a3bd6ca50f2693e9ef2d;hpb=5eb1c77c795f92ed0f4c8023847e9d4be1a4fd0d;p=ghc-hetmet.git diff --git a/ghc/runtime/hooks/ErrorHdr.lc b/ghc/runtime/hooks/ErrorHdr.lc index d71a3a9..9e32f4b 100644 --- a/ghc/runtime/hooks/ErrorHdr.lc +++ b/ghc/runtime/hooks/ErrorHdr.lc @@ -2,8 +2,9 @@ #include "rtsdefs.h" void -ErrorHdrHook (FILE *where) +ErrorHdrHook (StgInt fd) { - fprintf(where, "\nFail: "); + const char msg[]="\nFail: "; + write(fd,msg,sizeof(msg)-1); } \end{code}