Changeset 47864


Ignore:
Timestamp:
2015-12-11T16:08:44+01:00 (2 years ago)
Author:
blogic
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/mktplinkfw.c

    r47221 r47864  
    710710                        exceed_bytes = kernel_info.file_size - (rootfs_ofs - sizeof(struct fw_header)); 
    711711                        if (exceed_bytes > 0) { 
    712                                 ERR("kernel image is too big"); 
     712                                ERR("kernel image is too big by %i bytes", exceed_bytes); 
    713713                                return -1; 
    714714                        } 
     
    716716                        exceed_bytes = rootfs_info.file_size - (fw_max_len - rootfs_ofs); 
    717717                        if (exceed_bytes > 0) { 
    718                                 ERR("rootfs image is too big"); 
     718                                ERR("rootfs image is too big by %i bytes", exceed_bytes); 
    719719                                return -1; 
    720720                        } 
Note: See TracChangeset for help on using the changeset viewer.