Commit 65a3ddee authored by msvensson@shellback.(none)'s avatar msvensson@shellback.(none)

Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint

into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
parents 2db1fadb 8a84753a
...@@ -728,9 +728,11 @@ void die(const char *fmt, ...) ...@@ -728,9 +728,11 @@ void die(const char *fmt, ...)
if (fmt) if (fmt)
{ {
#ifdef DBUG_ON #ifdef DBUG_ON
#ifndef __WIN__
char buff[256]; char buff[256];
vsnprintf(buff, sizeof(buff), fmt, args); vsnprintf(buff, sizeof(buff), fmt, args);
DBUG_PRINT("error", ("%s", buff)); DBUG_PRINT("error", ("%s", buff));
#endif
#endif #endif
fprintf(stderr, "mysqltest: "); fprintf(stderr, "mysqltest: ");
if (cur_file && cur_file != file_stack) if (cur_file && cur_file != file_stack)
...@@ -855,8 +857,10 @@ void warning_msg(const char *fmt, ...) ...@@ -855,8 +857,10 @@ void warning_msg(const char *fmt, ...)
dynstr_append_mem(&ds_warning_messages, dynstr_append_mem(&ds_warning_messages,
buff, len); buff, len);
} }
#ifndef __WIN__
len= vsnprintf(buff, sizeof(buff), fmt, args); len= vsnprintf(buff, sizeof(buff), fmt, args);
dynstr_append_mem(&ds_warning_messages, buff, len); dynstr_append_mem(&ds_warning_messages, buff, len);
#endif
dynstr_append(&ds_warning_messages, "\n"); dynstr_append(&ds_warning_messages, "\n");
va_end(args); va_end(args);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment