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

Function msg_warn

lib_fiber/c/src/common/msg.c:81–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void msg_warn(const char *fmt,...)
82{
83 va_list ap;
84
85 va_start (ap, fmt);
86
87 if (__pre_write_fn) {
88#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
89 __pre_write_fn(__pre_write_ctx, fmt, ap);
90#else
91 va_list ap_tmp;
92 va_copy(ap_tmp, ap);
93 __pre_write_fn(__pre_write_ctx, fmt, ap_tmp);
94#endif
95 }
96
97 if (__stdout_enable) {
98#if (defined(_WIN32) || defined(_WIN64)) && _MSC_VER < 1900
99 printf("msg_warn->pid(%d), ", GETPID());
100 vprintf(fmt, ap);
101#else
102 va_list ap_tmp;
103 va_copy(ap_tmp, ap);
104 printf("msg_warn->pid(%d), ", GETPID());
105 vprintf(fmt, ap_tmp);
106#endif
107 printf("\r\n");
108 }
109
110 if (__write_fn != NULL) {
111 __write_fn(__msg_ctx, fmt, ap);
112 }
113
114 va_end (ap);
115}
116
117void msg_error(const char *fmt,...)
118{

Callers 15

host_addFunction · 0.85
udp_requestFunction · 0.85
valid_hostnameFunction · 0.85
valid_hostaddrFunction · 0.85
valid_ipv4_hostaddrFunction · 0.85
valid_ipv6_hostaddrFunction · 0.85
sane_socketpairFunction · 0.85
open_limitFunction · 0.85
iocp_add_listenFunction · 0.85
iocp_add_readFunction · 0.85
event_iocp_connectFunction · 0.85
iocp_add_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…