projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398ae02
)
efi_loader: Add a wchar_t cast in efi_file_open()
author
Simon Glass
<sjg@chromium.org>
Mon, 7 Jan 2019 23:44:18 +0000
(16:44 -0700)
committer
Simon Glass
<sjg@chromium.org>
Tue, 15 Jan 2019 00:47:13 +0000
(17:47 -0700)
The printf() string here is not actually correct. Add a cast to avoid
a warning when checking is enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/efi_file.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_file.c
b/lib/efi_loader/efi_file.c
index 128cb0a6273a688e0359845826741a2024e7ada5..8a4f3a9f408b0e7b894ead59244485c6536db9c1 100644
(file)
--- a/
lib/efi_loader/efi_file.c
+++ b/
lib/efi_loader/efi_file.c
@@
-221,8
+221,8
@@
static efi_status_t EFIAPI efi_file_open(struct efi_file_handle *file,
struct file_handle *fh = to_fh(file);
efi_status_t ret;
- EFI_ENTRY("%p, %p, \"%ls\", %llx, %llu", file, new_handle,
file_name,
- open_mode, attributes);
+ EFI_ENTRY("%p, %p, \"%ls\", %llx, %llu", file, new_handle,
+
(wchar_t *)file_name,
open_mode, attributes);
/* Check parameters */
if (!file || !new_handle || !file_name) {