Commit fd13cc8f authored by lhausamm's avatar lhausamm
Browse files

Print stderr after stdout

parent b30f76d2
......@@ -50,6 +50,7 @@
extern int engine_rank;
#define error(s, ...) \
({ \
fflush(stdout); \
fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", engine_rank, \
clocks_get_timesincestart(), __FILE__, __FUNCTION__, __LINE__, \
##__VA_ARGS__); \
......@@ -58,6 +59,7 @@ extern int engine_rank;
#else
#define error(s, ...) \
({ \
fflush(stdout); \
fprintf(stderr, "%s %s:%s():%i: " s "\n", clocks_get_timesincestart(), \
__FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
swift_abort(1); \
......
Supports Markdown
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