| 249 | */ |
| 250 | void(*sql_print_warning_hook)(const char *format,...); |
| 251 | void 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. |
no test coverage detected