ref: 2abdc9c59db277aa203f28da343f3b65ec47df8e
parent: be200593d6e827fdf51857f0034d0bcbffe74deb
author: AntonioND <[email protected]>
date: Mon Apr 3 19:46:15 EDT 2017
Add whitespace to error and warning messages Test reference output updated. Signed-off-by: AntonioND <[email protected]>
--- a/src/extern/err.c
+++ b/src/extern/err.c
@@ -30,9 +30,9 @@
void rgbds_vwarn(const char *fmt, va_list ap)
{
- fprintf (stderr, "%s:warning", progname);
+ fprintf (stderr, "%s: warning", progname);
if (fmt) {
- fputs (":", stderr);
+ fputs (": ", stderr);
vfprintf(stderr, fmt, ap);
}
putc('\n', stderr);
@@ -41,9 +41,9 @@
void rgbds_vwarnx(const char *fmt, va_list ap)
{
- fprintf (stderr, "%s:warning", progname);
+ fprintf (stderr, "%s: warning", progname);
if (fmt) {
- fputs (":", stderr);
+ fputs (": ", stderr);
vfprintf(stderr, fmt, ap);
}
putc('\n', stderr);
@@ -51,9 +51,9 @@
noreturn void rgbds_verr(int status, const char *fmt, va_list ap)
{
- fprintf (stderr, "%s:error", progname);
+ fprintf (stderr, "%s: error", progname);
if (fmt) {
- fputs (":", stderr);
+ fputs (": ", stderr);
vfprintf(stderr, fmt, ap);
}
putc('\n', stderr);
@@ -62,9 +62,9 @@
noreturn void rgbds_verrx(int status, const char *fmt, va_list ap)
{
- fprintf (stderr, "%s:error", progname);
+ fprintf (stderr, "%s: error", progname);
if (fmt) {
- fputs (":", stderr);
+ fputs (": ", stderr);
vfprintf(stderr, fmt, ap);
}
putc('\n', stderr);
--- a/test/asm/undefined-dot.out
+++ b/test/asm/undefined-dot.out
@@ -1,3 +1,3 @@
ERROR: undefined-dot.asm(3):
'.' not defined
-rgbasm:error:Assembly aborted in pass 2 (1 errors)!
+rgbasm: error: Assembly aborted in pass 2 (1 errors)!
--- a/test/link/bank-numbers.out
+++ b/test/link/bank-numbers.out
@@ -1,2 +1,2 @@
-rgblink:warning:Trying to calculate BANK() of label in HRAM.
-rgblink:warning:Trying to calculate BANK() of label in OAM.
+rgblink: warning: Trying to calculate BANK() of label in HRAM.
+rgblink: warning: Trying to calculate BANK() of label in OAM.