efi_loader: superfluous conversion in efi_file_open()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 19 Mar 2019 18:16:23 +0000 (19:16 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 20 Mar 2019 17:16:53 +0000 (18:16 +0100)
printf("%ls", ..) expects u16 * as argument to print. There is not need for
a conversion to wchar_t *.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_file.c

index 3a7323765bdb99318c3e326019c1b08f8bf09bad..bc715218a1b227fe1a56ac07d6f66fe674bd2986 100644 (file)
@@ -226,7 +226,7 @@ static efi_status_t EFIAPI efi_file_open(struct efi_file_handle *file,
        efi_status_t ret;
 
        EFI_ENTRY("%p, %p, \"%ls\", %llx, %llu", file, new_handle,
-                 (wchar_t *)file_name, open_mode, attributes);
+                 file_name, open_mode, attributes);
 
        /* Check parameters */
        if (!file || !new_handle || !file_name) {