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>
This commit is contained in:
parent
3bd35b8993
commit
0fd1611291
|
@ -96,7 +96,7 @@ int main(int argc, char *argv[])
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (pos > 0x100000) {
|
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);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue