projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7ff87e
)
efi_loader: printf code in efi_image_parse()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 6 Jun 2020 11:17:48 +0000
(13:17 +0200)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 14 Jun 2020 19:07:20 +0000
(21:07 +0200)
For size_t we have to use %zu for printing not %lu.
Fixes:
4540dabdcaca
("efi_loader: image_loader: support image
authentication")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_image_loader.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_image_loader.c
b/lib/efi_loader/efi_image_loader.c
index
478aaf5
..
230d41a
100644
(file)
--- a/
lib/efi_loader/efi_image_loader.c
+++ b/
lib/efi_loader/efi_image_loader.c
@@
-369,7
+369,7
@@
bool efi_image_parse(void *efi, size_t len, struct efi_image_regions **regp,
/* 3. Extra data excluding Certificates Table */
if (bytes_hashed + authsz < len) {
- debug("extra data for hash: %
l
u\n",
+ debug("extra data for hash: %
z
u\n",
len - (bytes_hashed + authsz));
efi_image_region_add(regs, efi + bytes_hashed,
efi + len - authsz, 0);