mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
tools: mkeficapsule: use %zd to print ssize_t.
For printing a ssize_t variable we must use %zd and not %ld to avoid a -Wformat error on 32-bit systems. Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
7604d874ff
commit
ac425307f7
1 changed files with 2 additions and 2 deletions
|
@ -866,12 +866,12 @@ static struct fdt_header *load_dtb(const char *path)
|
|||
|
||||
dtb = malloc(dtb_size);
|
||||
if (!dtb) {
|
||||
fprintf(stderr, "Can't allocated %ld\n", dtb_size);
|
||||
fprintf(stderr, "Can't allocated %zd\n", dtb_size);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (fread(dtb, dtb_size, 1, f) != 1) {
|
||||
fprintf(stderr, "Can't read %ld bytes from %s\n",
|
||||
fprintf(stderr, "Can't read %zd bytes from %s\n",
|
||||
dtb_size, path);
|
||||
free(dtb);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue