aboutsummaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-23 12:55:14 -0700
committerTom Rini <trini@konsulko.com>2022-02-03 15:53:28 -0500
commit5b9a5b2b966bf738ca4115a9dca52d0dc9f2710d (patch)
tree86ff5fbee12f43f7d700d130c92009aef12fc185 /lib/vsprintf.c
parent156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0 (diff)
downloadu-boot-5b9a5b2b966bf738ca4115a9dca52d0dc9f2710d.zip
u-boot-5b9a5b2b966bf738ca4115a9dca52d0dc9f2710d.tar.gz
u-boot-5b9a5b2b966bf738ca4115a9dca52d0dc9f2710d.tar.bz2
treewide: 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 the Raspberry Pi. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r--lib/vsprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 2c84649..69b2f6a 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -279,7 +279,7 @@ static char *string(char *buf, char *end, const char *s, int field_width,
static __maybe_unused char *string16(char *buf, char *end, u16 *s,
int field_width, int precision, int flags)
{
- const u16 *str = s ? s : L"<NULL>";
+ const u16 *str = s ? s : u"<NULL>";
ssize_t i, len = utf16_strnlen(str, precision);
if (!(flags & LEFT))