summaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2022-02-14 09:54:36 +0100
committerYann Gautier <yann.gautier@st.com>2022-02-15 18:09:51 +0100
commite4c77db9c80d87009611a3079454877e6ce45a04 (patch)
treefb4849c48631c21416d526663322010ccd01c3e2 /bl2
parentb22f18e36530e9b67d0b33a61f2c89fe85345e49 (diff)
fix(bl2): correct messages with image_id
As image_id is unsigned, we have to use %u and not %d. This avoids warning when -Wformat-signedness is enabled. Change-Id: I3f868f3d14c9f19349f0daa8a754179f887339c0 Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'bl2')
-rw-r--r--bl2/bl2_image_load_v2.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/bl2/bl2_image_load_v2.c b/bl2/bl2_image_load_v2.c
index 48c9beca6..dee3fc2d3 100644
--- a/bl2/bl2_image_load_v2.c
+++ b/bl2/bl2_image_load_v2.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2020, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -7,17 +7,16 @@
#include <assert.h>
#include <stdint.h>
-#include <platform_def.h>
-
#include <arch.h>
#include <arch_helpers.h>
+#include "bl2_private.h"
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/desc_image_load.h>
#include <drivers/auth/auth_mod.h>
#include <plat/common/platform.h>
-#include "bl2_private.h"
+#include <platform_def.h>
/*******************************************************************************
* This function loads SCP_BL2/BL3x images and returns the ep_info for
@@ -66,16 +65,16 @@ struct entry_point_info *bl2_load_images(void)
if ((bl2_node_info->image_info->h.attr &
IMAGE_ATTRIB_SKIP_LOADING) == 0U) {
- INFO("BL2: Loading image id %d\n", bl2_node_info->image_id);
+ INFO("BL2: Loading image id %u\n", bl2_node_info->image_id);
err = load_auth_image(bl2_node_info->image_id,
bl2_node_info->image_info);
if (err != 0) {
- ERROR("BL2: Failed to load image id %d (%i)\n",
+ ERROR("BL2: Failed to load image id %u (%i)\n",
bl2_node_info->image_id, err);
plat_error_handler(err);
}
} else {
- INFO("BL2: Skip loading image id %d\n", bl2_node_info->image_id);
+ INFO("BL2: Skip loading image id %u\n", bl2_node_info->image_id);
}
/* Allow platform to handle image information. */