[DEV] correction of the debug android new gcc version

This commit is contained in:
Edouard DUPIN 2013-12-20 00:32:49 +01:00
parent 923319e6f7
commit 91198bd195
2 changed files with 9 additions and 12 deletions

View File

@ -18,19 +18,16 @@
void debug::displayFuncName(int32_t _ligne, const char* _className, const char* _funcName, const char* _libName)
{
char tmpName[FUNCTION_NAME_SIZE] = "";
if (NULL == _libName) {
_libName = "????????";
}
#if defined(__TARGET_OS__Android)
_className = NULL;
#endif
if (NULL == _className) {
if (NULL == _libName) {
snprintf(tmpName, FUNCTION_NAME_SIZE-1, "???????? | (l=%5d) %s ",_ligne, _funcName);
} else {
snprintf(tmpName, FUNCTION_NAME_SIZE-1, "%s | (l=%5d) %s ",_libName, _ligne, _funcName);
}
snprintf(tmpName, FUNCTION_NAME_SIZE-1, "%s | (l=%5d) %s ",_libName, _ligne, _funcName);
} else {
if (NULL == _libName) {
snprintf(tmpName, FUNCTION_NAME_SIZE-1, "???????? | (l=%5d) %s::%s ",_ligne, _className, _funcName);
} else {
snprintf(tmpName, FUNCTION_NAME_SIZE-1, "%s | (l=%5d) %s::%s ", _libName, _ligne, _className, _funcName);
}
snprintf(tmpName, FUNCTION_NAME_SIZE-1, "%s | (l=%5d) %s::%s ", _libName, _ligne, _className, _funcName);
}
tmpName[FUNCTION_NAME_SIZE-4] = ' ';
tmpName[FUNCTION_NAME_SIZE-3] = '|';

View File

@ -60,7 +60,7 @@ extern enum etk::logLevel g_requestedLevel;
# define ETK_DEBUG(libName,data) do {}while(0)
#endif
#if DEBUG_LEVEL > 3
#if (DEBUG_LEVEL > 3 || defined(DEBUG_ENABLE_VERBOSE))
# define ETK_VERBOSE(libName,data) ETK_DBG_COMMON(libName, etk::logLevelVerbose, data)
#else
# define ETK_VERBOSE(libName,data) do {}while(0)