diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-23 12:55:12 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-02-03 12:16:01 -0500 |
commit | 156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0 (patch) | |
tree | db7dcc9bb8ee0ec5730384d56356ba55a6cfd200 /lib/efi_selftest/efi_selftest_miniapp_exception.c | |
parent | 587254ebcf05fa76b6a957ffa72db053177836cf (diff) |
efi: Use 16-bit unicode strings
At present we use wide characters for unicode but this is not necessary.
Change the code to use the 'u' literal instead. This helps to fix build
warnings for sandbox on rpi.
Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_miniapp_exception.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest_miniapp_exception.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efi_selftest/efi_selftest_miniapp_exception.c b/lib/efi_selftest/efi_selftest_miniapp_exception.c index 9be0e7e3eb..79f9a67859 100644 --- a/lib/efi_selftest/efi_selftest_miniapp_exception.c +++ b/lib/efi_selftest/efi_selftest_miniapp_exception.c @@ -23,7 +23,7 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle, struct efi_simple_text_output_protocol *con_out = systable->con_out; con_out->output_string(con_out, - L"EFI application triggers exception.\n"); + u"EFI application triggers exception.\n"); #if defined(CONFIG_ARM) /* @@ -38,6 +38,6 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle, #elif defined(CONFIG_X86) asm volatile (".word 0xffff\n"); #endif - con_out->output_string(con_out, L"Exception not triggered.\n"); + con_out->output_string(con_out, u"Exception not triggered.\n"); return EFI_ABORTED; } |