aboutsummaryrefslogtreecommitdiff
path: root/include/efi_selftest.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-23 12:55:12 -0700
committerTom Rini <trini@konsulko.com>2022-02-03 12:16:01 -0500
commit156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0 (patch)
treedb7dcc9bb8ee0ec5730384d56356ba55a6cfd200 /include/efi_selftest.h
parent587254ebcf05fa76b6a957ffa72db053177836cf (diff)
downloadu-boot-156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0.zip
u-boot-156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0.tar.gz
u-boot-156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0.tar.bz2
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 'include/efi_selftest.h')
-rw-r--r--include/efi_selftest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/efi_selftest.h b/include/efi_selftest.h
index 94ceb14..5340cef 100644
--- a/include/efi_selftest.h
+++ b/include/efi_selftest.h
@@ -16,7 +16,7 @@
#define EFI_ST_SUCCESS 0
#define EFI_ST_FAILURE 1
-#define EFI_ST_SUCCESS_STR L"SUCCESS"
+#define EFI_ST_SUCCESS_STR u"SUCCESS"
/**
* efi_st_printf() - print a message
@@ -111,7 +111,7 @@ u16 *efi_st_translate_char(u16 code);
* efi_st_translate_code() - translate a scan code to a human readable string
*
* This function translates the scan code returned by the simple text input
- * protocol to a human readable string, e.g. 0x04 is translated to L"Left".
+ * protocol to a human readable string, e.g. 0x04 is translated to u"Left".
*
* @code: scan code
* Return: Unicode string