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

Function msg_error

lib_fiber/c/src/common/msg.c:117–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void msg_error(const char *fmt,...)
118{
119 va_list ap;
120
121 va_start (ap, fmt);
122
123 if (__pre_write_fn) {
124#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
125 __pre_write_fn(__pre_write_ctx, fmt, ap);
126#else
127 va_list ap_tmp;
128 va_copy(ap_tmp, ap);
129 __pre_write_fn(__pre_write_ctx, fmt, ap_tmp);
130#endif
131 }
132
133 if (__stdout_enable) {
134#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
135 printf("msg_error->pid(%d), ", GETPID());
136 vprintf(fmt, ap);
137#else
138 va_list ap_tmp;
139 va_copy(ap_tmp, ap);
140 printf("msg_error->pid(%d), ", GETPID());
141 vprintf(fmt, ap_tmp);
142#endif
143 printf("\r\n");
144 }
145
146 if (__write_fn != NULL) {
147 __write_fn(__msg_ctx, fmt, ap);
148 }
149
150 va_end (ap);
151}
152
153void msg_fatal(const char *fmt,...)
154{

Callers 15

inet_listenFunction · 0.70
checkFunction · 0.70
sane_socketpairFunction · 0.70
queue_freeFunction · 0.70
queue_waitFunction · 0.70
queue_pop_timedwaitFunction · 0.70
queue_pushFunction · 0.70
queue_qlenFunction · 0.70
mbox_createFunction · 0.70
mbox_send2Function · 0.70
tcp_nodelayFunction · 0.70
open_limitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…