From 94746f019a0d6449c08be05feec71db45d5339fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20Makovi=C4=8Dka?= Date: Sat, 12 May 2012 12:17:38 +0200 Subject: [PATCH] fix garbage in log --- Osmand-kernel/osmand/src/osmand_log.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Osmand-kernel/osmand/src/osmand_log.cpp b/Osmand-kernel/osmand/src/osmand_log.cpp index d43516a2e7..ccdc4777cd 100644 --- a/Osmand-kernel/osmand/src/osmand_log.cpp +++ b/Osmand-kernel/osmand/src/osmand_log.cpp @@ -11,13 +11,13 @@ void osmand_log_print(int type, const char* msg, ...) { va_list args; va_start( args, msg); if(type == LOG_ERROR) { - __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, msg, args); + __android_log_vprint(ANDROID_LOG_ERROR, LOG_TAG, msg, args); } else if(type == LOG_INFO) { - __android_log_print(ANDROID_LOG_INFO, LOG_TAG, msg, args); + __android_log_vprint(ANDROID_LOG_INFO, LOG_TAG, msg, args); } else if(type == LOG_WARN) { - __android_log_print(ANDROID_LOG_WARN, LOG_TAG, msg, args); + __android_log_vprint(ANDROID_LOG_WARN, LOG_TAG, msg, args); } else { - __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, msg, args); + __android_log_vprint(ANDROID_LOG_DEBUG, LOG_TAG, msg, args); } va_end(args); }