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

Function msg_info

lib_fiber/c/src/common/msg.c:45–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void msg_info(const char *fmt,...)
46{
47 va_list ap;
48
49 va_start (ap, fmt);
50
51 if (__pre_write_fn) {
52#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
53 __pre_write_fn(__pre_write_ctx, fmt, ap);
54#else
55 va_list ap_tmp;
56 va_copy(ap_tmp, ap);
57 __pre_write_fn(__pre_write_ctx, fmt, ap_tmp);
58#endif
59 }
60
61 if (__stdout_enable) {
62#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
63 printf("msg_info->pid(%d), ", GETPID());
64 vprintf(fmt, ap);
65#else
66 va_list ap_tmp;
67 va_copy(ap_tmp, ap);
68 printf("msg_info->pid(%d), ", GETPID());
69 vprintf(fmt, ap_tmp);
70#endif
71 printf("\r\n");
72 }
73
74 if (__write_fn != NULL) {
75 __write_fn(__msg_ctx, fmt, ap);
76 }
77
78 va_end (ap);
79}
80
81void msg_warn(const char *fmt,...)
82{

Callers 15

htable_enterFunction · 0.70
fiber_io_loopFunction · 0.50
thread_exit_dummyFunction · 0.50
acl_fiber_scheduleFunction · 0.50
acl_fiber_switchFunction · 0.50
fbase_event_waitFunction · 0.50
fbase_event_wakeupFunction · 0.50
acl_fiber_stack_printFunction · 0.50
acl_fiber_stacktraceFunction · 0.50
kqueueFunction · 0.50
fiber_sendfile64Function · 0.50
acl_fiber_acceptFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…