Standard formatting of error messages.
https://www.gnu.org/prep/standards/html_node/Errors.html Issue: https://github.com/cc65/cc65/issues/1494
This commit is contained in:
committed by
Oliver Schmidt
parent
bda5bf70ce
commit
bcc670ee36
@@ -94,7 +94,7 @@ void InfoWarning (const char* Format, ...)
|
||||
xvsprintf (Buf, sizeof (Buf), Format, ap);
|
||||
va_end (ap);
|
||||
|
||||
fprintf (stderr, "%s(%u): Warning: %s\n",
|
||||
fprintf (stderr, "%s:%u: Warning: %s\n",
|
||||
InputSrcName, InfoErrorLine, Buf);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ void InfoError (const char* Format, ...)
|
||||
xvsprintf (Buf, sizeof (Buf), Format, ap);
|
||||
va_end (ap);
|
||||
|
||||
fprintf (stderr, "%s(%u): Error: %s\n",
|
||||
fprintf (stderr, "%s:%u: Error: %s\n",
|
||||
InputSrcName, InfoErrorLine, Buf);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user