[PATCH] dtc: srcpos_verror() should print to stderr

Michael Ellerman michael at ellerman.id.au
Tue Oct 16 17:58:56 EST 2012


Errors should go to stderr.

Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
 srcpos.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpos.c b/srcpos.c
index 246ab4b..c20bc53 100644
--- a/srcpos.c
+++ b/srcpos.c
@@ -297,9 +297,9 @@ srcpos_verror(struct srcpos *pos, char const *fmt, va_list va)
 
        srcstr = srcpos_string(pos);
 
-       fprintf(stdout, "Error: %s ", srcstr);
-       vfprintf(stdout, fmt, va);
-       fprintf(stdout, "\n");
+       fprintf(stderr, "Error: %s ", srcstr);
+       vfprintf(stderr, fmt, va);
+       fprintf(stderr, "\n");
 }
 
 void
-- 
1.7.9.5



More information about the devicetree-discuss mailing list