~prafulla-t/drizzle/drz-fast-timer-and-time-profile-refactoring

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Prafulla Tekawade
  • Date: 2010-08-22 06:26:33 UTC
  • mfrom: (1685.40.6 staging)
  • Revision ID: prafulla_t@users.sourceforge.net-20100822062633-rda0zeuhg6nhyyom
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <boost/program_options.hpp>
33
33
#include <drizzled/module/option_map.h>
34
34
#include <cstdio>
 
35
#include <cerrno>
35
36
 
36
37
namespace po= boost::program_options;
37
38
using namespace drizzled;
186
187
             S_IRUSR|S_IWUSR);
187
188
    if (fd < 0)
188
189
    {
 
190
      char errmsg[STRERROR_MAX];
 
191
      strerror_r(errno, errmsg, sizeof(errmsg));
189
192
      errmsg_printf(ERRMSG_LVL_ERROR, _("fail open() fn=%s er=%s\n"),
190
193
                    sysvar_logging_query_filename,
191
 
                    strerror(errno));
 
194
                    errmsg);
192
195
      return;
193
196
    }
194
197