mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
dtc: srcpos_verror() should print to stderr
Errors should go to stderr. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
1762ab42ef
commit
8dec4d86ad
1 changed files with 3 additions and 3 deletions
6
srcpos.c
6
srcpos.c
|
@ -297,9 +297,9 @@ srcpos_verror(struct srcpos *pos, char const *fmt, va_list va)
|
||||||
|
|
||||||
srcstr = srcpos_string(pos);
|
srcstr = srcpos_string(pos);
|
||||||
|
|
||||||
fprintf(stdout, "Error: %s ", srcstr);
|
fprintf(stderr, "Error: %s ", srcstr);
|
||||||
vfprintf(stdout, fmt, va);
|
vfprintf(stderr, fmt, va);
|
||||||
fprintf(stdout, "\n");
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue