mktplinkfw: add missing exceeding bytes info to logs

Add the info on exceeding bytes also to the remaining log messages.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>

SVN-Revision: 47864
v19.07.3_mercusys_ac12_duma
John Crispin 9 years ago
parent 786717a7ce
commit 0231d41352

@ -709,13 +709,13 @@ static int check_options(void)
} else { } else {
exceed_bytes = kernel_info.file_size - (rootfs_ofs - sizeof(struct fw_header)); exceed_bytes = kernel_info.file_size - (rootfs_ofs - sizeof(struct fw_header));
if (exceed_bytes > 0) { if (exceed_bytes > 0) {
ERR("kernel image is too big"); ERR("kernel image is too big by %i bytes", exceed_bytes);
return -1; return -1;
} }
exceed_bytes = rootfs_info.file_size - (fw_max_len - rootfs_ofs); exceed_bytes = rootfs_info.file_size - (fw_max_len - rootfs_ofs);
if (exceed_bytes > 0) { if (exceed_bytes > 0) {
ERR("rootfs image is too big"); ERR("rootfs image is too big by %i bytes", exceed_bytes);
return -1; return -1;
} }
} }

Loading…
Cancel
Save