fix(psci): correct parent_node type in messages
As parent_node is unsigned, we have to use %u and not %d. This avoids warning when -Wformat-signedness is enabled. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I5ab7acb33227d720b2c8a4ec013435442b219a44
This commit is contained in:
parent
a211fde940
commit
b9338eee7f
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
|
* Copyright (c) 2013-2022, ARM Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -908,7 +908,7 @@ void psci_print_power_domain_map(void)
|
||||||
idx++) {
|
idx++) {
|
||||||
state_type = find_local_state_type(
|
state_type = find_local_state_type(
|
||||||
psci_non_cpu_pd_nodes[idx].local_state);
|
psci_non_cpu_pd_nodes[idx].local_state);
|
||||||
INFO(" Domain Node : Level %u, parent_node %d,"
|
INFO(" Domain Node : Level %u, parent_node %u,"
|
||||||
" State %s (0x%x)\n",
|
" State %s (0x%x)\n",
|
||||||
psci_non_cpu_pd_nodes[idx].level,
|
psci_non_cpu_pd_nodes[idx].level,
|
||||||
psci_non_cpu_pd_nodes[idx].parent_node,
|
psci_non_cpu_pd_nodes[idx].parent_node,
|
||||||
|
@ -919,7 +919,7 @@ void psci_print_power_domain_map(void)
|
||||||
for (idx = 0; idx < psci_plat_core_count; idx++) {
|
for (idx = 0; idx < psci_plat_core_count; idx++) {
|
||||||
state = psci_get_cpu_local_state_by_idx(idx);
|
state = psci_get_cpu_local_state_by_idx(idx);
|
||||||
state_type = find_local_state_type(state);
|
state_type = find_local_state_type(state);
|
||||||
INFO(" CPU Node : MPID 0x%llx, parent_node %d,"
|
INFO(" CPU Node : MPID 0x%llx, parent_node %u,"
|
||||||
" State %s (0x%x)\n",
|
" State %s (0x%x)\n",
|
||||||
(unsigned long long)psci_cpu_pd_nodes[idx].mpidr,
|
(unsigned long long)psci_cpu_pd_nodes[idx].mpidr,
|
||||||
psci_cpu_pd_nodes[idx].parent_node,
|
psci_cpu_pd_nodes[idx].parent_node,
|
||||||
|
|
Loading…
Reference in New Issue