diff --git a/scripts/mk-am35xx-spi-image.c b/scripts/mk-am35xx-spi-image.c index 1372fbd15..74e79dbee 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); }