diff options
-rw-r--r-- | waltham-receiver/include/wth-receiver-comm.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/waltham-receiver/include/wth-receiver-comm.h b/waltham-receiver/include/wth-receiver-comm.h index 5c58146..5d50996 100644 --- a/waltham-receiver/include/wth-receiver-comm.h +++ b/waltham-receiver/include/wth-receiver-comm.h @@ -292,16 +292,10 @@ void waltham_touch_cancel(struct window *window); # define pr_fmt(fmt) fmt #endif -#ifndef USE_STDOUT -# define PRINT_OUT stderr -#else -# define PRINT_OUT stdout -#endif - #define wth_error(fmt, ...) \ - ({ fprintf(PRINT_OUT, pr_fmt(fmt), ## __VA_ARGS__); fflush(PRINT_OUT); }) + ({ fprintf(stderr, pr_fmt(fmt), ## __VA_ARGS__); fflush(stderr); }) #define wth_verbose(fmt, ...) \ - ({ if (get_verbosity()) { fprintf(PRINT_OUT, pr_fmt(fmt), ## __VA_ARGS__); fflush(PRINT_OUT); } }) + ({ if (get_verbosity()) { fprintf(stdout, pr_fmt(fmt), ## __VA_ARGS__); fflush(stdout); } }) /****** incline functions *****/ static inline void * |