From b5006bfe16aceae279eab1ef456b69ddcbb06a47 Mon Sep 17 00:00:00 2001 From: Seokhyun Kim Date: Wed, 10 Apr 2013 10:45:58 +0900 Subject: [PATCH] add prefix [SECURE_LOG] to secure log output Change-Id: I3eb95989a957f37de5084c1099c09791f9806c7e --- inc/FBaseLog.h | 8 ++++---- inc/FBaseSysLog.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/FBaseLog.h b/inc/FBaseLog.h index 9c06eeb..6426fa4 100644 --- a/inc/FBaseLog.h +++ b/inc/FBaseLog.h @@ -757,11 +757,11 @@ extern "C" { */ #if (defined(_APP_LOG) || defined(_OSP_DEBUG_) || defined(_DEBUG)) && defined(_SECURE_LOG) -#define AppSecureLog(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) -#define AppSecureLogException(...) AppLogExceptionInternal(__PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) +#define AppSecureLog(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) +#define AppSecureLogException(...) AppLogExceptionInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) -#define AppSecureLogTag(tag, ...) AppLogTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) -#define AppSecureLogExceptionTag(tag, ...) AppLogExceptionTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) +#define AppSecureLogTag(tag, ...) AppLogTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) +#define AppSecureLogExceptionTag(tag, ...) AppLogExceptionTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) #else /** diff --git a/inc/FBaseSysLog.h b/inc/FBaseSysLog.h index 75f3c35..17e74e8 100644 --- a/inc/FBaseSysLog.h +++ b/inc/FBaseSysLog.h @@ -597,11 +597,11 @@ case condition: \ // Secure Macros #if defined(_SECURE_LOG) -#define SysSecureLog(NID, ...) SysLogInternal(NID, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) -#define SysSecureLogException(NID, r,...) SysLogExceptionInternal(NID, r, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) +#define SysSecureLog(NID, ...) SysLogInternal(NID, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) +#define SysSecureLogException(NID, r,...) SysLogExceptionInternal(NID, r, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) -#define SysSecureLogTag(NID, tag, ...) SysLogTagInternal(NID, tag, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) -#define SysSecureLogExceptionTag(NID, tag, r, ...) SysLogExceptionTagInternal(NID, tag, r, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__) +#define SysSecureLogTag(NID, tag, ...) SysLogTagInternal(NID, tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) +#define SysSecureLogExceptionTag(NID, tag, r, ...) SysLogExceptionTagInternal(NID, tag, r, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__) #else -- 2.7.4