Commit 1a4df11c authored by Cedric Roux's avatar Cedric Roux

better handling of debug /tmp/fapi.c file

let's print an error in case of failure when trying to open it
parent 0ad60e3d
......@@ -525,7 +525,11 @@ fapi_interface_t *init_fapi(void)
}
#if FAPI_TRACER
Q = fopen("/tmp/fapi.c", "w"); if (Q == NULL) abort();
Q = fopen("/tmp/fapi.c", "w");
if (Q == NULL) {
printf("%s:%d: error with /tmp/fapi.c: %s", __FILE__, __LINE__, strerror(errno));
abort();
}
#endif
return (fapi_interface_t *)ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment