mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-09 02:51:21 +00:00
fix(libc): correct some messages
Replace %d with %u in logs, to avoid warning when -Wformat-signedness is enabled. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Id058f6fb0fd25ce5f83b1be41082403fcb205841
This commit is contained in:
parent
cec2fb2b1a
commit
a211fde940
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017-2021, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -42,7 +42,7 @@ static void unsigned_num_print(char **s, size_t n, size_t *chars_printed,
|
|||
char ascii_a = capitalise ? 'A' : 'a';
|
||||
|
||||
if (radix < 10) {
|
||||
ERROR("snprintf: unsupported radix '%d'.", radix);
|
||||
ERROR("snprintf: unsupported radix '%u'.", radix);
|
||||
plat_panic_handler();
|
||||
assert(0); /* Unreachable */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue