Commit eb4399a1 authored by winckel's avatar winckel

Added stderr and stdout flush to CHECK_INIT_RETURN.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4769 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 1b602597
...@@ -75,6 +75,8 @@ do { \ ...@@ -75,6 +75,8 @@ do { \
if ((fct_ret = (fCT)) != 0) { \ if ((fct_ret = (fCT)) != 0) { \
fprintf(stderr, "Function "#fCT" has failed\n" \ fprintf(stderr, "Function "#fCT" has failed\n" \
"returning %d\n", fct_ret); \ "returning %d\n", fct_ret); \
fflush(stdout); \
fflush(stderr); \
exit(EXIT_FAILURE); \ exit(EXIT_FAILURE); \
} \ } \
} while(0) } while(0)
......
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