MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_printf_error

Function my_printf_error

mysys/my_error.c:202–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200*/
201
202void my_printf_error(uint error, const char *format, myf MyFlags, ...)
203{
204 va_list args;
205 char ebuff[ERRMSGSIZE];
206 DBUG_ENTER("my_printf_error");
207 DBUG_PRINT("my", ("nr: %d MyFlags: %d errno: %d Format: %s",
208 error, MyFlags, errno, format));
209
210 va_start(args,MyFlags);
211 (void) my_vsnprintf_ex(&my_charset_utf8_general_ci, ebuff,
212 sizeof(ebuff), format, args);
213 va_end(args);
214 (*error_handler_hook)(error, ebuff, MyFlags);
215 DBUG_VOID_RETURN;
216}
217
218/**
219 Print an error message.

Callers 8

generate_new_nameMethod · 0.85
prepare_create_fieldFunction · 0.85
check_host_nameFunction · 0.85
create_comparatorFunction · 0.85
parse_xpathMethod · 0.85
my_read_charset_fileFunction · 0.85

Calls 1

my_vsnprintf_exFunction · 0.85

Tested by

no test coverage detected