From 5b9a5b2b966bf738ca4115a9dca52d0dc9f2710d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 23 Jan 2022 12:55:14 -0700 Subject: 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 Reviewed-by: Heinrich Schuchardt --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vsprintf.c') diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 2c84649fa8a..69b2f6a1adc 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""; + const u16 *str = s ? s : u""; ssize_t i, len = utf16_strnlen(str, precision); if (!(flags & LEFT)) -- cgit v1.2.3