MCPcopy Create free account
hub / github.com/cppla/ServerStatus / dbg_msg

Function dbg_msg

server/src/system.c:86–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void dbg_msg(const char *sys, const char *fmt, ...)
87{
88 va_list args;
89 char str[1024*8];
90 char *msg;
91 int i, len;
92
93 str_format(str, sizeof(str), "[%s]: ", sys);
94 len = strlen(str);
95 msg = (char *)str + len;
96
97 va_start(args, fmt);
98#if defined(CONF_FAMILY_WINDOWS)
99 _vsnprintf(msg, sizeof(str)-len, fmt, args);
100#else
101 vsnprintf(msg, sizeof(str)-len, fmt, args);
102#endif
103 va_end(args);
104
105 for(i = 0; i < num_loggers; i++)
106 loggers[i](str);
107}
108
109static void logger_stdout(const char *line)
110{

Callers 15

BanMethod · 0.85
UnbanMethod · 0.85
UpdateMethod · 0.85
BanRangeMethod · 0.85
UnbanByRangeMethod · 0.85
UnbanByIndexMethod · 0.85
dbg_assert_impFunction · 0.85
dbg_logger_fileFunction · 0.85
mem_freeFunction · 0.85
mem_check_impFunction · 0.85
netaddr_to_sockaddr_inFunction · 0.85
netaddr_to_sockaddr_in6Function · 0.85

Calls 1

str_formatFunction · 0.85

Tested by

no test coverage detected