]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
BL2: Print ID of images we fail loading
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 3 Feb 2020 14:58:16 +0000 (15:58 +0100)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 3 Feb 2020 15:11:56 +0000 (16:11 +0100)
When Trusted Boot is enabled, images are loaded and authenticated
following up the root of trust. This means that between the initial
console message saying that an image is being loaded, and the final one
where it says that it failed to load it, BL2 may print several messages
about other images on the chain of trust being loaded, thus it is not
always clear which image we failed loading at the end of the day.

Change-Id: I3b189ec9d12c2a6203d16c8dbbb4fc117639c3c1
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
bl2/bl2_image_load_v2.c

index dd53e1d2b4c2da03c307282347e033466412d491..1fbdbabac787afe3c9cc0b2c7ea781d199c4cafa 100644 (file)
@@ -68,7 +68,8 @@ struct entry_point_info *bl2_load_images(void)
                        err = load_auth_image(bl2_node_info->image_id,
                                bl2_node_info->image_info);
                        if (err) {
-                               ERROR("BL2: Failed to load image (%i)\n", err);
+                               ERROR("BL2: Failed to load image id %d (%i)\n",
+                                     bl2_node_info->image_id, err);
                                plat_error_handler(err);
                        }
                } else {