| 200 | */ |
| 201 | |
| 202 | void 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. |
no test coverage detected