cwLog.cpp : levelToLabel() is not implemented in terms of cw::idToLabel().

This commit is contained in:
kevin 2024-05-06 15:41:54 -04:00
parent 2395feb4a7
commit 6ba4d04b58

View File

@ -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;
}