Fix build error caused by dlog
authorso.yu <so.yu@samsung.com>
Tue, 16 Apr 2013 07:44:11 +0000 (16:44 +0900)
committerso.yu <so.yu@samsung.com>
Tue, 16 Apr 2013 13:44:10 +0000 (22:44 +0900)
Change-Id: I2a09fce63b9ca6c33e296b8da18ae1df1f93fe46
Signed-off-by: so.yu <so.yu@samsung.com>
src/base/FBaseSys.cpp

index 477d6b7..8fc56e5 100644 (file)
@@ -440,12 +440,12 @@ AppassertInternal(const char* pFunction, int lineNumber)
        if( (platformDebug == false) && (appDebug == 0) )
        {
                snprintf(logBody, LOG_LEN_MAX, "%s(%d) > App assertion passed due to debug mode off!", pFunction, lineNumber);
-               ALOG(LOG_ERROR, logTag, logBody);
+               ALOG(LOG_ERROR, logTag, "%s", logBody);
                return;
        }
 
        snprintf(logBody, LOG_LEN_MAX, "%s(%d) > AppAssert!", pFunction, lineNumber);
-       ALOG(LOG_ERROR, logTag, logBody);
+       ALOG(LOG_ERROR, logTag, "%s", logBody);
 
        assert(false);
 }
@@ -623,7 +623,7 @@ SysAssertInternal(const char* pFileName, int lineNumber, const char* pFunction)
 
        snprintf(logBody, LOG_LEN_MAX, "%s(%d) > SysAssert!", pFunction, lineNumber);
 
-       ALOG(LOG_ERROR, LOG_TAG_ASSERT, logBody);
+       ALOG(LOG_ERROR, LOG_TAG_ASSERT, "%s", logBody);
 
        assert(false);
 }
@@ -663,7 +663,7 @@ SysPropagateInternal(const char* pFunction, int lineNumber, unsigned long nid, r
        char logTag[LOG_MODULE_NAME_LEN_MAX];
        snprintf(logTag, LOG_MODULE_NAME_LEN_MAX, "%s", __GetModuleName(static_cast<LogID>(nid)));
 
-       ALOG(LOG_ERROR, logTag, logBody);
+       ALOG(LOG_ERROR, logTag, "%s", logBody);
 }
 
 void