From: blogic Date: Fri, 11 Dec 2015 15:08:44 +0000 (+0000) Subject: mktplinkfw: add missing exceeding bytes info to logs X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=4260000b3945c88bb201d7814773ddd14c4d0b4b;p=openwrt.git 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47864 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c index 4922afb069..085eb4c39d 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; } }