From bedd7a18966bdfc10ec01d64e30aa359f217941a Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 11 Dec 2013 11:46:35 +0100 Subject: [PATCH] android/tester: Make HAL logging wrapper print to stderr instead of stdout This is used for testing and for user it makes no difference. This will allow to switch on/off verbose logging from automated android tester. --- android/hal-log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hal-log.h b/android/hal-log.h index 9bd024d8c..63ff61b13 100644 --- a/android/hal-log.h +++ b/android/hal-log.h @@ -25,7 +25,7 @@ #define LOG_WARN " W" #define LOG_ERROR " E" #define LOG_DEBUG " D" -#define ALOG(pri, tag, fmt, arg...) printf(tag pri": " fmt"\n", ##arg) +#define ALOG(pri, tag, fmt, arg...) fprintf(stderr, tag pri": " fmt"\n", ##arg) #endif #define info(fmt, arg...) ALOG(LOG_INFO, LOG_TAG, fmt, ##arg) -- 2.47.3