MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / logmsg_level_str

Function logmsg_level_str

util/logmsg.c:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static char *logmsg_level_str(int lvl)
81{
82 switch (lvl) {
83 case LOGMSG_DEBUG: return "DEBUG";
84 case LOGMSG_INFO: return "INFO";
85 case LOGMSG_WARN: return "WARNING";
86 case LOGMSG_ERROR: return "ERROR";
87 case LOGMSG_FATAL: return "FATAL";
88 case LOGMSG_USER: return "USER";
89 default: return "???";
90 }
91}
92
93static int sprintf_auto_resize(char **headp, int *offp, int len, const char *fmt, const char *content)
94{

Callers 4

logmsgvFunction · 0.85
logmsg_process_messageFunction · 0.85
logmsg_level_valueFunction · 0.85
logmsg_level_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected