MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_msg_error

Function acl_msg_error

lib_acl/src/stdlib/acl_msg.c:296–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void acl_msg_error(const char *fmt,...)
297{
298 va_list ap;
299
300 va_start (ap, fmt);
301
302 if (__stdout_enable) {
303#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
304 vprintf(fmt, ap);
305 printf("\r\n");
306#else
307 va_list ap_tmp;
308 va_copy(ap_tmp, ap);
309# ifdef LINUX
310 printf("acl_msg_error->pid(%d), ", getpid());
311# elif defined(SOLARIS)
312 printf("acl_msg_error->pid(%ld), ", getpid());
313# endif
314 vprintf(fmt, ap_tmp);
315 printf("\r\n");
316#endif
317 }
318
319 if (__pre_write_fn) {
320 __pre_write_fn(__pre_write_ctx, fmt, ap);
321 }
322
323 if (__log_open_flag) {
324 if (__write_fn != NULL) {
325 __write_fn(__msg_ctx, fmt, ap);
326 } else {
327 acl_write_to_log2("error", fmt, ap);
328 }
329 }
330
331 va_end (ap);
332
333 if (__trace_enable) {
334 acl_trace_info();
335 }
336}
337
338void acl_msg_error2(const char *fmt, va_list ap)
339{

Callers 15

fiber_server.cppFile · 0.85
main_dispatch_pollFunction · 0.85
server_daemon_openFunction · 0.85
acl_fiber_server_mainFunction · 0.85
killedMethod · 0.85
tcp_proxyMethod · 0.85
fiber_pingFunction · 0.85
check_fdtypeFunction · 0.85
event_defer_r_mergeFunction · 0.85
event_defer_w_mergeFunction · 0.85
event_addFunction · 0.85
__event_delFunction · 0.85

Calls 2

acl_write_to_log2Function · 0.85
acl_trace_infoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…