cwLog.cpp : levelToLabel() is not implemented in terms of cw::idToLabel().
This commit is contained in:
parent
2395feb4a7
commit
6ba4d04b58
@ -164,13 +164,7 @@ void cw::log::setFormatCb( handle_t h, logFormatCbFunc_t fmtFunc, void* fmtCbArg
|
|||||||
|
|
||||||
|
|
||||||
const char* cw::log::levelToLabel( unsigned level )
|
const char* cw::log::levelToLabel( unsigned level )
|
||||||
{
|
{ return idToLabel(logLevelLabelArray,level,kInvalid_LogLevel); }
|
||||||
const char* label;
|
|
||||||
if((label = idToLabel(logLevelLabelArray,level,kInvalid_LogLevel)) == nullptr)
|
|
||||||
label = "<unknown>";
|
|
||||||
|
|
||||||
return label;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user