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

Function acl_msg_warn

lib_acl/src/stdlib/acl_msg.c:216–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void acl_msg_warn(const char *fmt,...)
217{
218 va_list ap;
219
220 va_start (ap, fmt);
221
222 if (__stdout_enable) {
223#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
224
225 vprintf(fmt, ap);
226 printf("\r\n");
227#else
228 va_list ap_tmp;
229 va_copy(ap_tmp, ap);
230# ifdef LINUX
231 printf("acl_msg_warn->pid(%d), ", getpid());
232# elif defined(SOLARIS)
233 printf("acl_msg_warn->pid(%ld), ", getpid());
234# endif
235
236 vprintf(fmt, ap_tmp);
237 printf("\r\n");
238#endif
239 }
240
241 if (__pre_write_fn) {
242 __pre_write_fn(__pre_write_ctx, fmt, ap);
243 }
244
245 if (__log_open_flag) {
246 if (__write_fn != NULL) {
247 __write_fn(__msg_ctx, fmt, ap);
248 } else {
249 acl_write_to_log2("warn", fmt, ap);
250 }
251 }
252
253 va_end (ap);
254
255 if (__trace_enable) {
256 acl_trace_info();
257 }
258}
259
260void acl_msg_warn2(const char *fmt, va_list ap)
261{

Callers 15

main_dispatch_receiveFunction · 0.85
main_dispatch_reportFunction · 0.85
main_fiber_dispatchFunction · 0.85
main_fiber_monitor_usedFunction · 0.85
fiber_pingFunction · 0.85
__lockFunction · 0.85
main_dispatch_receiveFunction · 0.85
main_dispatch_reportFunction · 0.85
main_fiber_dispatchFunction · 0.85
main_fiber_monitor_usedFunction · 0.85

Calls 2

acl_write_to_log2Function · 0.85
acl_trace_infoFunction · 0.85

Tested by 2

dict_test1Function · 0.68
dict_test2Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…