~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/error_message.cc

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <config.h>
 
20
#include "config.h"
 
21
#include "drizzled/plugin/error_message.h"
21
22
 
22
 
#include <drizzled/error.h>
23
 
#include <drizzled/gettext.h>
24
 
#include <drizzled/plugin/error_message.h>
 
23
#include "drizzled/gettext.h"
25
24
 
26
25
#include <cstdio>
27
26
#include <algorithm>
86
85
 
87
86
bool plugin::ErrorMessage::vprintf(error::level_t priority, char const *format, va_list ap)
88
87
{
89
 
  if (not (priority >= error::verbosity()))
90
 
    return false;
91
88
 
92
89
  /* 
93
90
    Check to see if any errmsg plugin has been loaded
99
96
       (single writes are atomic), then this needs to be rewritten to
100
97
       vsprintf into a char buffer, and then write() that char buffer
101
98
       to stderr */
102
 
      vfprintf(stderr, format, ap);
103
 
      fputc('\n', stderr);
 
99
    vfprintf(stderr, format, ap);
 
100
    fputc('\n', stderr);
104
101
    return false;
105
102
  }
106
103