~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.cc

  • Committer: Brian Aker
  • Date: 2009-10-02 19:38:12 UTC
  • mfrom: (1152.1.7 merge)
  • Revision ID: brian@gaz-20091002193812-mpd61oecep74t6gd
Merge Monty + Brian for plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
*/
24
24
 
25
25
#include <drizzled/server_includes.h>
26
 
#include <drizzled/errmsg.h>
 
26
#include <drizzled/plugin/registry.h>
27
27
#include <drizzled/errmsg_print.h>
28
28
#include <drizzled/current_session.h>
 
29
#include <drizzled/plugin/error_message.h>
29
30
 
30
31
// need this for stderr
31
32
#include <string.h>
32
33
 
 
34
using namespace drizzled;
 
35
 
33
36
void sql_perror(const char *message)
34
37
{
35
38
  // is stderr threadsafe?
41
44
  bool rv;
42
45
  va_list args;
43
46
  va_start(args, format);
44
 
  rv= errmsg_vprintf(current_session, priority, format, args);
 
47
  rv= plugin::ErrorMessage::vprintf(current_session, priority, format, args);
45
48
  va_end(args);
46
49
  return rv;
47
50
}