~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_error.c

  • Committer: Stewart Smith
  • Date: 2008-07-25 03:48:54 UTC
  • mfrom: (207.1.1 drizzle)
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080725034854-p34pdb0lhpoc159d
merge mainline and update md5 and crc32 plugins to new interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  struct my_err_head *meh_p;
73
73
  va_list args;
74
74
  char ebuff[ERRMSGSIZE + 20];
75
 
  DBUG_ENTER("my_error");
76
 
  DBUG_PRINT("my", ("nr: %d  MyFlags: %d  errno: %d", nr, MyFlags, errno));
77
75
 
78
76
  /* Search for the error messages array, which could contain the message. */
79
77
  for (meh_p= my_errmsgs_list; meh_p; meh_p= meh_p->meh_next)
91
89
    va_end(args);
92
90
  }
93
91
  (*error_handler_hook)(nr, ebuff, MyFlags);
94
 
  DBUG_VOID_RETURN;
 
92
  return;
95
93
}
96
94
 
97
95
 
110
108
{
111
109
  va_list args;
112
110
  char ebuff[ERRMSGSIZE+20];
113
 
  DBUG_ENTER("my_printf_error");
114
 
  DBUG_PRINT("my", ("nr: %d  MyFlags: %d  errno: %d  Format: %s",
115
 
                    error, MyFlags, errno, format));
116
111
 
117
112
  va_start(args,MyFlags);
118
113
  (void) vsnprintf (ebuff, sizeof(ebuff), format, args);
119
114
  va_end(args);
120
115
  (*error_handler_hook)(error, ebuff, MyFlags);
121
 
  DBUG_VOID_RETURN;
 
116
  return;
122
117
}
123
118
 
124
119
/*