diff options
author | John Crispin <blogic@openwrt.org> | 2015-12-11 15:08:44 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-12-11 15:08:44 +0000 |
commit | 609ad7f3d66f36d40f2dd34605b54c3081ce0a7f (patch) | |
tree | f76cec559fe5eeab633fb378c4224131c2df21c6 /tools | |
parent | de9b443207c2428c91d0ad75494e8e6941d762ac (diff) | |
download | master-187ad058-609ad7f3d66f36d40f2dd34605b54c3081ce0a7f.tar.gz master-187ad058-609ad7f3d66f36d40f2dd34605b54c3081ce0a7f.tar.bz2 master-187ad058-609ad7f3d66f36d40f2dd34605b54c3081ce0a7f.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47864 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/firmware-utils/src/mktplinkfw.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |