Author: blogic
Date: 2015-12-11 16:08:44 +0100 (Fri, 11 Dec 2015)
New Revision: 47864

Modified:
   trunk/tools/firmware-utils/src/mktplinkfw.c
Log:
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 <[email protected]>

Modified: trunk/tools/firmware-utils/src/mktplinkfw.c
===================================================================
--- trunk/tools/firmware-utils/src/mktplinkfw.c 2015-12-11 15:08:34 UTC (rev 
47863)
+++ trunk/tools/firmware-utils/src/mktplinkfw.c 2015-12-11 15:08:44 UTC (rev 
47864)
@@ -709,13 +709,13 @@
                } 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;
                        }
                }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to