diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-12-11 11:46:35 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-11 13:10:07 +0200 |
commit | bedd7a18966bdfc10ec01d64e30aa359f217941a (patch) | |
tree | defb10b3bb2ac40e4cc28bb3445012b4a46e5d36 /android/hal-log.h | |
parent | 8746e1cff9270773815a6c4d5a54b83554b00f50 (diff) | |
download | bluez-bedd7a18966bdfc10ec01d64e30aa359f217941a.tar.gz |
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.
Diffstat (limited to 'android/hal-log.h')
-rw-r--r-- | android/hal-log.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |