9
0
Fork 0

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:
Sascha Hauer 2012-10-26 08:52:36 +02:00
parent 3bd35b8993
commit 0fd1611291
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}