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.ha...@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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox