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