Kaydet (Commit) fd8ee703 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Do not use arbitrary strings as format strings

Change-Id: I4fb4e7e6a5779801e135864781204a54250ce092
üst abbe7d82
...@@ -102,13 +102,13 @@ inline void DbgSetTestSolarMutex( DbgTestSolarMutexProc pProc ) ...@@ -102,13 +102,13 @@ inline void DbgSetTestSolarMutex( DbgTestSolarMutexProc pProc )
} }
#define DBG_ASSERTWARNING( sCon, aWarning ) \ #define DBG_ASSERTWARNING( sCon, aWarning ) \
SAL_DETAIL_INFO_IF_FORMAT(!(sCon), "legacy.tools", aWarning) SAL_DETAIL_INFO_IF_FORMAT(!(sCon), "legacy.tools", "%s", aWarning)
#define DBG_ASSERT( sCon, aError ) \ #define DBG_ASSERT( sCon, aError ) \
SAL_DETAIL_WARN_IF_FORMAT(!(sCon), "legacy.tools", aError) SAL_DETAIL_WARN_IF_FORMAT(!(sCon), "legacy.tools", "%s", aError)
#define DBG_WARNING( aWarning ) \ #define DBG_WARNING( aWarning ) \
SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aWarning) SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", "%s", aWarning)
#define DBG_TESTSOLARMUTEX() \ #define DBG_TESTSOLARMUTEX() \
do \ do \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment