~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.cc

LOCK_open to boost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include "config.h"
26
26
 
27
 
#include <drizzled/definitions.h>
28
27
#include <drizzled/errmsg_print.h>
29
28
#include <drizzled/plugin/error_message.h>
30
29
 
36
35
 
37
36
void sql_perror(const char *message)
38
37
{
39
 
  char errmsg[STRERROR_MAX];
40
 
  strerror_r(errno, errmsg, sizeof(errmsg));
41
 
  errmsg_printf(ERRMSG_LVL_ERROR, "%s: %s\n", message, errmsg);
 
38
  // is stderr threadsafe?
 
39
  errmsg_printf(ERRMSG_LVL_ERROR, "%s: %s", message, strerror(errno));
42
40
}
43
41
 
44
42
bool errmsg_printf (int priority, char const *format, ...)