summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>2019-06-06 15:31:06 +0900
committerVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>2019-06-06 15:31:06 +0900
commit2a7ba03907c2c0656b1e40415d2533963cc0a1e6 (patch)
tree341805c83e40dddb8ac95c9038e2f3fdcf715745
parentd2c69136aab291aaf8351485cc7cac8927f97c8f (diff)
wth-receiver-comm.h:fix log outputting
Signed-off-by: Veeresh Kadasani <external.vkadasani@jp.adit-jv.com>
-rw-r--r--waltham-receiver/include/wth-receiver-comm.h10
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 *