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

Function my_printf_warning

mysys/my_error.c:251–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249*/
250void(*sql_print_warning_hook)(const char *format,...);
251void my_printf_warning(const char *format, ...)
252{
253 va_list args;
254 char wbuff[ERRMSGSIZE];
255 DBUG_ENTER("my_printf_warning");
256 DBUG_PRINT("my", ("Format: %s", format));
257 va_start(args,format);
258 (void) my_vsnprintf (wbuff, sizeof(wbuff), format, args);
259 va_end(args);
260 (*sql_print_warning_hook)(wbuff);
261 DBUG_VOID_RETURN;
262}
263
264/**
265 Print an error message.

Callers 1

wait_for_free_spaceFunction · 0.85

Calls 1

my_vsnprintfFunction · 0.85

Tested by

no test coverage detected