Fix issue again with wrong macro on error.

This commit is contained in:
carl 2019-02-26 00:46:10 +08:00
parent bd52b1f8f5
commit 9fab867333

View file

@ -610,9 +610,9 @@ static void _error(int class, char *fn, unsigned int ln, char* fmt, va_list ap)
#endif /* LINT */ #endif /* LINT */
if (fn) if (fn)
fprint(STDERR, "\"%s\", line %u: ", fn, ln); fprint(ERROUT, "\"%s\", line %u: ", fn, ln);
if (remark) if (remark)
fprint(STDERR, "%s ", remark); fprint(ERROUT, "%s ", remark);
doprnt(STDERR, fmt, ap); /* contents of error */ doprnt(ERROUT, fmt, ap); /* contents of error */
fprint(STDERR, "\n"); fprint(ERROUT, "\n");
} }