9
9
#include <stdarg.h> /* for va_list */
10
10
#include <unistd.h> /* for write(2) */
12
bool errmsg_stderr_func (THD *thd, int priority, const char *format, va_list ap)
14
18
char msgbuf[MAX_MSG_LEN];
18
prv = vsnprintf(msgbuf, MAX_MSG_LEN, format, ap);
21
prv= vsnprintf(msgbuf, MAX_MSG_LEN, format, ap);
19
22
if (prv < 0) return true;
21
24
/* a single write has a OS level thread lock