diff options
author | Simon Glass <sjg@chromium.org> | 2021-06-20 09:46:05 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-01 19:05:49 +0000 |
commit | 624d827325bbd2fe3187a747f8f479e013751ed4 (patch) | |
tree | 6f1c89e7d7c50e87da9155cfaf3d33493dde55bc | |
parent | 4dee5b1c7146f25aac7080794b594124a7e28410 (diff) | |
download | vboot-624d827325bbd2fe3187a747f8f479e013751ed4.tar.gz |
Show error code when kernel is invalid
It seems useful to provide a bit more information about why the kernel
failed to load. We have a suitable error code, so show it.
BUG=b:191646387
BRANCH=none
TEST=run through the flow with a VB2_ERROR_LOAD_PARTITION_WORKBUF
error, see it is shown
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I426f571e1a4f947c97ccf99a399b4c3ab1c32047
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2975086
Reviewed-by: Joel Kitching <kitching@chromium.org>
-rw-r--r-- | firmware/lib/vboot_kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c index 05458b09..eb96a5c0 100644 --- a/firmware/lib/vboot_kernel.c +++ b/firmware/lib/vboot_kernel.c @@ -525,7 +525,7 @@ vb2_error_t LoadKernel(struct vb2_context *ctx, VbExStreamClose(stream); if (rv) { - VB2_DEBUG("Marking kernel as invalid.\n"); + VB2_DEBUG("Marking kernel as invalid (err=%x).\n", rv); GptUpdateKernelEntry(&gpt, GPT_UPDATE_ENTRY_BAD); continue; } |