Parent: 1db97762e976bdf9304ffc9873b052fbaec48de1
Author: Johan Hedberg <johan.hedberg@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2015-04-02 11:33:20
Tree: 8d4a595401e72af733e4c2acc3ea73fd3cd76453
tools: Fix build-error on 32-bit systems The %zX format specifier for st_size causes the following warning: tools/create-image.c:120:5: error: format ‘%zX’ expects argument of type ‘size_t’, but argument 10 has type ‘__off_t’ [-Werror=format=] st.st_size, 0, 0, 0, 0, namelen + 1, 0, name); ^ The best way to solve this (as off_t doesn't have a standard format specifier) is to use 'j' and do a typecast to uintmax_t.
Diffstat
| M | tools/create-image.c | | | 5 | +++- - |
1 files changed, 3 insertions(+), 2 deletions(-)