summaryrefslogtreecommitdiff
path: root/doc/develop/python_cq.rst
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2022-01-15 20:12:56 +0100
committerTom Rini <[email protected]>2022-01-24 10:35:10 -0500
commitc28f2499952a78609e80d3b1f7aca9b0aab8d6d6 (patch)
treea45f95eddd0481052a20027013e5ad96e5fd8c1a /doc/develop/python_cq.rst
parent800f0d05e1a1bef75ca1aa8a580f1b0139bceb20 (diff)
mkimage: struct stat.st_size may not be long
The component st_size of struct stat is of type off_t. Depending on the system printing it using %ld leads to a warning: tools/mkimage.c:438:54: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'off_t' {aka 'long long int'} [-Wformat=] 438 | "%s: Bad size: \"%s\" is not valid image: size %ld < %u\n", | ~~^ | | | long int | %lld When comparing an off_t value to a 32bit integer we should not convert to uint32_t but to off_t which may be wider. Reported-by: Milan P. Stanić <[email protected]> Fixes: 331f0800f1a3 ("mkimage: allow -l to work on block devices on Linux") Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Mark Kettenis <[email protected]>
Diffstat (limited to 'doc/develop/python_cq.rst')
0 files changed, 0 insertions, 0 deletions