Skip to content
Snippets Groups Projects
Commit 565a9530 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

utils: print warning and error messages to stderr

parent eb08749e
No related branches found
No related tags found
No related merge requests found
......@@ -33,9 +33,9 @@
#define WARNING_ ";; WARNING: "
#define DEBUG_ ";; DEBUG: "
#define ERR(msg, ...) { printf(ERROR_ msg, ##__VA_ARGS__); fflush(stdout); }
#define INFO(msg, ...) { printf(INFO_ msg, ##__VA_ARGS__); fflush(stdout); }
#define WARN(msg, ...) { printf(WARNING_ msg, ##__VA_ARGS__); fflush(stdout); }
#define ERR(msg, ...) { fprintf(stderr, ERROR_ msg, ##__VA_ARGS__); fflush(stderr); }
#define INFO(msg, ...) { fprintf(stdout, INFO_ msg, ##__VA_ARGS__); fflush(stdout); }
#define WARN(msg, ...) { fprintf(stderr, WARNING_ msg, ##__VA_ARGS__); fflush(stderr); }
#define DBG(msg, ...) msg_debug(DEBUG_ msg, ##__VA_ARGS__)
/*! \brief Enable/disable debugging. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment