renamign 'errtype' to 'msgtype' here... makes more sense... plus I had it on the paramlist :P

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-14 12:17:08 +02:00
parent 965331f315
commit 5416fdb7c0

View file

@ -40,9 +40,9 @@ int levelcolor[] = {
void vprintmsg(int level, const char *name, size_t line, const char *msgtype, const char *msg, va_list ap)
{
#ifndef WIN32
fprintf (stderr, "\033[0;%dm%s:%d: \033[0;%dm%s: \033[0m", CON_CYAN, name, (int)line, levelcolor[level], errtype);
fprintf (stderr, "\033[0;%dm%s:%d: \033[0;%dm%s: \033[0m", CON_CYAN, name, (int)line, levelcolor[level], msgtype);
#else
fprintf (stderr, "%s:%d: %s: ", name, line, errtype);
fprintf (stderr, "%s:%d: %s: ", name, line, msgtype);
#endif
vfprintf(stderr, msg, ap);
fprintf (stderr, "\n");
@ -52,7 +52,7 @@ void printmsg(int level, const char *name, size_t line, const char *msgtype, con
{
va_list va;
va_start(va, msg);
vprintmsg(level, name, line, errtype, msg, va);
vprintmsg(level, name, line, msgtype, msg, va);
va_end (va);
}