[coreboot-gerrit] Patch merged into coreboot/master: 470c37c util/cbfstool: Use `%zu` instead of `%ld` for size_t arguments

gerrit at coreboot.org gerrit at coreboot.org
Tue May 27 15:43:11 CEST 2014


the following patch was just integrated into master:
commit 470c37c372b6b6a6961a3b287f609f55c15f6d4c
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date:   Sun Mar 16 00:15:57 2014 +0100

    util/cbfstool: Use `%zu` instead of `%ld` for size_t arguments
    
    cbfstool fails to built under 32-bit platforms since commit
    
        aa2f739a cbfs: fix issues with word size and endianness.
    
    due to the use of '%ld' format specifier on size_t, which on these
    platforms is only 32-bit.
    
    No error is seen though, when cbfstool is built, when building a coreboot
    image, where it is put in `build/cbfstool`.
    
    Use the length modifier `z` for size_t arguments, and cast to size_t where
    appropriate.
    
    Change-Id: Id84a20fbf237376a31f7e4816bd139463800c977
    Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
    Reviewed-on: http://review.coreboot.org/5388
    Tested-by: build bot (Jenkins)
    Reviewed-by: Aaron Durbin <adurbin at gmail.com>


See http://review.coreboot.org/5388 for details.

-gerrit



More information about the coreboot-gerrit mailing list