[OpenWrt-Devel] [PATCH 1/2] mktplinkfw: add missing exceeding bytes info to logs
Felix Kaechele
felix at kaechele.ca
Tue Nov 24 11:57:04 EST 2015
Add the info on exceeding bytes also to the remaining log messages.
Signed-off-by: Felix Kaechele <felix at kaechele.ca>
---
tools/firmware-utils/src/mktplinkfw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c
index 4922afb..085eb4c 100644
--- a/tools/firmware-utils/src/mktplinkfw.c
+++ b/tools/firmware-utils/src/mktplinkfw.c
@@ -709,13 +709,13 @@ static int check_options(void)
} else {
exceed_bytes = kernel_info.file_size - (rootfs_ofs - sizeof(struct fw_header));
if (exceed_bytes > 0) {
- ERR("kernel image is too big");
+ ERR("kernel image is too big by %i bytes", exceed_bytes);
return -1;
}
exceed_bytes = rootfs_info.file_size - (fw_max_len - rootfs_ofs);
if (exceed_bytes > 0) {
- ERR("rootfs image is too big");
+ ERR("rootfs image is too big by %i bytes", exceed_bytes);
return -1;
}
}
--
2.4.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list