[PATCH 15/15] ARM omap spi image: print error to stderr

Sascha Hauer s.hauer at pengutronix.de
Fri Oct 26 02:59:08 EDT 2012


Since the utility outputs the image on stdout we have to print the
error messages to stderr in order to see them.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 scripts/mk-am35xx-spi-image.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mk-am35xx-spi-image.c b/scripts/mk-am35xx-spi-image.c
index 1372fbd..74e79db 100644
--- a/scripts/mk-am35xx-spi-image.c
+++ b/scripts/mk-am35xx-spi-image.c
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
 		exit(EXIT_FAILURE);
 	}
 	if (pos > 0x100000) {
-		printf("error: image should be smaller than 1 MiB\n");
+		fprintf(stderr, "error: image should be smaller than 1 MiB\n");
 		exit(EXIT_FAILURE);
 	}
 
-- 
1.7.10.4




More information about the barebox mailing list