Renamed dbg strs.
FossilOrigin-Name: ebedf0e63586214632fecbc3fbe9099b720d25293c01d9dbc11cffa2c7d00080
This commit is contained in:
parent
691111f04d
commit
f6ae42736a
@ -22,11 +22,13 @@
|
||||
#include "cw_log.h"
|
||||
|
||||
|
||||
struct
|
||||
struct cw_dbg_cfgstrs
|
||||
{
|
||||
const char *name;
|
||||
int level;
|
||||
} dbg_strs[] = {
|
||||
};
|
||||
|
||||
struct cw_dbg_cfgstrs cw_dbg_cfgstrs[] = {
|
||||
|
||||
{"info",DBG_CW_INFO},
|
||||
{"msg",DBG_CW_MSG},
|
||||
@ -55,9 +57,9 @@ struct
|
||||
int cw_log_str2dbglevel(const char * str)
|
||||
{
|
||||
int i;
|
||||
for (i=0; dbg_strs[i].name; i++) {
|
||||
if (!strcmp(str,dbg_strs[i].name))
|
||||
return dbg_strs[i].level;
|
||||
for (i=0; cw_dbg_cfgstrs[i].name; i++) {
|
||||
if (!strcmp(str,cw_dbg_cfgstrs[i].name))
|
||||
return cw_dbg_cfgstrs[i].level;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user