diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-23 12:55:14 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-02-03 15:53:28 -0500 |
commit | 5b9a5b2b966bf738ca4115a9dca52d0dc9f2710d (patch) | |
tree | 86ff5fbee12f43f7d700d130c92009aef12fc185 /test/print_ut.c | |
parent | 156ccbc3c4581a1e6d29c51f4af4e120e30a2ef0 (diff) |
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 'test/print_ut.c')
-rw-r--r-- | test/print_ut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/print_ut.c b/test/print_ut.c index 194387f169..a133907674 100644 --- a/test/print_ut.c +++ b/test/print_ut.c @@ -118,7 +118,7 @@ static int print_printf(struct unit_test_state *uts) snprintf(str, 0, "testing none"); ut_asserteq('x', *str); - sprintf(big_str, "_%ls_", L"foo"); + sprintf(big_str, "_%ls_", u"foo"); ut_assertok(strcmp("_foo_", big_str)); /* Test the banner function */ |