diff --git a/scripts/socfpga_mkimage.c b/scripts/socfpga_mkimage.c index bab1b1a..1a7a66d 100644 --- a/scripts/socfpga_mkimage.c +++ b/scripts/socfpga_mkimage.c @@ -234,8 +234,8 @@ } if (s.st_size > max_image_size) { - fprintf(stderr, "input image too big. Maximum is %d bytes\n", - MAX_IMAGE_SIZE); + fprintf(stderr, "input image too big. Maximum is %d bytes, got %ld bytes\n", + max_image_size, s.st_size); exit(1); }