summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-26 08:52:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-26 08:57:16 +0200
commit0fd1611291983f8497ae1107575834c550a5f757 (patch)
tree327fe39a2270089e4ff1568cbcf1e0ba8cde9be1 /scripts
parent3bd35b8993b4a48a3adcbdb132004b7c14923bf6 (diff)
downloadbarebox-0fd1611291983f8497ae1107575834c550a5f757.tar.gz
barebox-0fd1611291983f8497ae1107575834c550a5f757.tar.xz
ARM omap spi image: print error to stderr
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@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mk-am35xx-spi-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mk-am35xx-spi-image.c b/scripts/mk-am35xx-spi-image.c
index 1372fbd152..74e79dbee1 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);
}