mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
vsnprintf is not available on win2003-x86 host, as this is just a debug functionality - disable it for now.
This commit is contained in:
parent
b896bd0a6e
commit
8a84753acf
1 changed files with 4 additions and 0 deletions
|
@ -728,9 +728,11 @@ void die(const char *fmt, ...)
|
|||
if (fmt)
|
||||
{
|
||||
#ifdef DBUG_ON
|
||||
#ifndef __WIN__
|
||||
char buff[256];
|
||||
vsnprintf(buff, sizeof(buff), fmt, args);
|
||||
DBUG_PRINT("error", ("%s", buff));
|
||||
#endif
|
||||
#endif
|
||||
fprintf(stderr, "mysqltest: ");
|
||||
if (cur_file && cur_file != file_stack)
|
||||
|
@ -855,8 +857,10 @@ void warning_msg(const char *fmt, ...)
|
|||
dynstr_append_mem(&ds_warning_messages,
|
||||
buff, len);
|
||||
}
|
||||
#ifndef __WIN__
|
||||
len= vsnprintf(buff, sizeof(buff), fmt, args);
|
||||
dynstr_append_mem(&ds_warning_messages, buff, len);
|
||||
#endif
|
||||
dynstr_append(&ds_warning_messages, "\n");
|
||||
va_end(args);
|
||||
|
||||
|
|
Loading…
Reference in a new issue