~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-07-30 02:39:13 UTC
  • mto: (1115.3.11 captain)
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: osullivan.padraig@gmail.com-20090730023913-o2zuocp32l6btnc2
Removing references to MY_BITMAP throughout the code base and updating calls
to MyBitmap in various places to use the new interface.

Show diffs side-by-side

added added

removed removed

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