From ee37b0a02b428d9f04cfa1f26df1fd79ede854ef Mon Sep 17 00:00:00 2001 From: Isuru Samarathunga Date: Thu, 16 Oct 2025 13:13:42 +0530 Subject: [PATCH] Logger --- Src/IACore/inc/hpp/IACore/Logger.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/IACore/inc/hpp/IACore/Logger.hpp b/Src/IACore/inc/hpp/IACore/Logger.hpp index 086830d..8f0314a 100644 --- a/Src/IACore/inc/hpp/IACore/Logger.hpp +++ b/Src/IACore/inc/hpp/IACore/Logger.hpp @@ -32,7 +32,7 @@ namespace ia StringStream ss; UNUSED((ss << ... << args)); #ifdef __ANDROID__ - __android_log_print(ANDROID_LOG_DEBUG, "IAApp", ss.str().c_str()); + __android_log_print(ANDROID_LOG_DEBUG, "IAApp", "%s", ss.str().c_str()); #else printf("\033[0;37m[INFO]: [%s] %s\033[39m\n", tag, ss.str().c_str()); #endif @@ -43,7 +43,7 @@ namespace ia StringStream ss; UNUSED((ss << ... << args)); #ifdef __ANDROID__ - __android_log_print(ANDROID_LOG_INFO, "IAApp", ss.str().c_str()); + __android_log_print(ANDROID_LOG_INFO, "IAApp", "%s", ss.str().c_str()); #else printf("\033[32m[SUCCESS]: [%s] %s\033[39m\n", tag, ss.str().c_str()); #endif @@ -54,7 +54,7 @@ namespace ia StringStream ss; UNUSED((ss << ... << args)); #ifdef __ANDROID__ - __android_log_print(ANDROID_LOG_DEBUG, "IAApp", ss.str().c_str()); + __android_log_print(ANDROID_LOG_DEBUG, "IAApp", "%s", ss.str().c_str()); #else printf("\033[33m[WARN]: [%s] %s\033[39m\n", tag, ss.str().c_str()); #endif @@ -65,7 +65,7 @@ namespace ia StringStream ss; UNUSED((ss << ... << args)); #ifdef __ANDROID__ - __android_log_print(ANDROID_LOG_ERROR, "IAApp", ss.str().c_str()); + __android_log_print(ANDROID_LOG_ERROR, "IAApp", "%s", ss.str().c_str()); #else printf("\033[31m[ERROR]: [%s] %s\033[39m\n", tag, ss.str().c_str()); #endif