aboutsummaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index a887e3b0..7d1ffa3c 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1086,7 +1086,8 @@ int read_buf_from_file(unsigned char *buf, unsigned long size,
return 1;
}
if (image_stat.st_size != size) {
- msg_gerr("Error: Image size doesn't match\n");
+ msg_gerr("Error: Image size (%ld B) doesn't match the flash chip's size (%ld B)!\n",
+ image_stat.st_size, size);
fclose(image);
return 1;
}