Return-Path: From: Marcin Kraglak To: linux-bluetooth@vger.kernel.org Cc: Szymon Janc Subject: [PATCH v4 5/7] android/tester: Make HAL logging wrapper print to stderr instead of stdout Date: Wed, 11 Dec 2013 11:46:35 +0100 Message-Id: <1386758797-1809-5-git-send-email-marcin.kraglak@tieto.com> In-Reply-To: <1386758797-1809-1-git-send-email-marcin.kraglak@tieto.com> References: <1386758797-1809-1-git-send-email-marcin.kraglak@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Szymon Janc 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 9bd024d..63ff61b 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) -- 1.8.3.1