Skip to content

Commit a713979

Browse files
nivedita76ardbiesheuvel
authored andcommitted
efi/libstub: Use %ls for filename
efi_printk can now handle the UTF-16 filename, so print it using efi_err instead of a separate efi_char16_puts call. Signed-off-by: Arvind Sankar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent 4b75bd3 commit a713979

File tree

1 file changed

+1
-3
lines changed
  • drivers/firmware/efi/libstub

1 file changed

+1
-3
lines changed

drivers/firmware/efi/libstub/file.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ static efi_status_t efi_open_file(efi_file_protocol_t *volume,
4646

4747
status = volume->open(volume, &fh, fi->filename, EFI_FILE_MODE_READ, 0);
4848
if (status != EFI_SUCCESS) {
49-
efi_err("Failed to open file: ");
50-
efi_char16_puts(fi->filename);
51-
efi_puts("\n");
49+
efi_err("Failed to open file: %ls\n", fi->filename);
5250
return status;
5351
}
5452

0 commit comments

Comments
 (0)