don't do extra copy of classString
This commit is contained in:
parent
cee05a1bb7
commit
1102f449aa
|
@ -521,8 +521,6 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co
|
||||||
if ( level < PANIC || level > DEBUG9 )
|
if ( level < PANIC || level > DEBUG9 )
|
||||||
Panic( "Invalid logger level %d", level );
|
Panic( "Invalid logger level %d", level );
|
||||||
|
|
||||||
strncpy( classString, smCodes[level].c_str(), sizeof(classString) );
|
|
||||||
|
|
||||||
gettimeofday( &timeVal, NULL );
|
gettimeofday( &timeVal, NULL );
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -571,7 +569,7 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co
|
||||||
timeString,
|
timeString,
|
||||||
mId.c_str(),
|
mId.c_str(),
|
||||||
tid,
|
tid,
|
||||||
classString,
|
smCodes[level].c_str(),
|
||||||
file,
|
file,
|
||||||
line
|
line
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue