From b9338eee7fbcac7f4b55f27b064572e847810422 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 14 Feb 2022 11:09:23 +0100 Subject: [PATCH] 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 Change-Id: I5ab7acb33227d720b2c8a4ec013435442b219a44 --- lib/psci/psci_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 9f8a08abb..170777f7a 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -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 */ @@ -908,7 +908,7 @@ void psci_print_power_domain_map(void) idx++) { state_type = find_local_state_type( 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", psci_non_cpu_pd_nodes[idx].level, 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++) { state = psci_get_cpu_local_state_by_idx(idx); 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", (unsigned long long)psci_cpu_pd_nodes[idx].mpidr, psci_cpu_pd_nodes[idx].parent_node,