~ubuntu-branches/ubuntu/quantal/mysql-5.5/quantal-security

« back to all changes in this revision

Viewing changes to mysys/my_error.c

  • Committer: Package Import Robot
  • Author(s): Seth Arnold
  • Date: 2013-04-18 18:15:39 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20130418181539-7uo1w041b4h2ulbs
Tags: 5.5.31-0ubuntu0.12.10.1
* SECURITY UPDATE: Update to 5.5.31 to fix security issues (LP: #1170516)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2013-1899555.html
* debian/patches/71_disable_rpl_tests.patch: refreshed.
* debian/patches/fix-mysqldump-test.patch: removed, fixed differently
  upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
}
150
150
 
151
151
/*
 
152
  Warning as printf
 
153
 
 
154
  SYNOPSIS
 
155
    my_printf_warning()
 
156
      format>   Format string
 
157
      ...>      variable list
 
158
*/
 
159
void(*sql_print_warning_hook)(const char *format,...);
 
160
void my_printf_warning(const char *format, ...)
 
161
{
 
162
  va_list args;
 
163
  char wbuff[ERRMSGSIZE];
 
164
  DBUG_ENTER("my_printf_warning");
 
165
  DBUG_PRINT("my", ("Format: %s", format));
 
166
  va_start(args,format);
 
167
  (void) my_vsnprintf (wbuff, sizeof(wbuff), format, args);
 
168
  va_end(args);
 
169
  (*sql_print_warning_hook)(wbuff);
 
170
  DBUG_VOID_RETURN;
 
171
}
 
172
 
 
173
/*
152
174
  Give message using error_handler_hook
153
175
 
154
176
  SYNOPSIS