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:
committed by
Jon Loeliger
parent
1762ab42ef
commit
8dec4d86ad
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
|
||||||
|
|||||||
Reference in New Issue
Block a user