~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.cc

  • Committer: Mark Atwood
  • Date: 2009-01-05 04:37:22 UTC
  • mto: (758.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: me@mark.atwood.name-20090105043722-03l4mzcxi4yjjjih
replace sql_print_error etc with errmsg_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
void sql_perror(const char *message)
61
61
{
62
62
  // is stderr threadsafe?
63
 
  sql_print_error("%s: %s", message, strerror(errno));
 
63
  errmsg_printf(ERRMSG_LVL_ERROR, "%s: %s", message, strerror(errno));
 
64
}
 
65
 
 
66
 
 
67
bool errmsg_printf (int priority, char const *format, ...)
 
68
{
 
69
  bool rv;
 
70
  va_list args;
 
71
  va_start(args, format);
 
72
  rv= errmsg_vprintf(current_session, priority, format, args);
 
73
  va_end(args);
 
74
  return rv;
64
75
}