2secdata_kernel: Fix debug messages

BUG=none
BRANCH=none
TEST=Verified on Puff.

Signed-off-by: dnojiri <dnojiri@chromium.org>
Change-Id: I7e33abcf0832f83530e94cc37117c03fe164bbdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2132716
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
dnojiri 2020-04-01 08:54:24 -07:00 committed by Commit Bot
parent 42cd1f57fb
commit 509a887c5a
1 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@ static vb2_error_t secdata_kernel_check_v1(struct vb2_context *ctx,
}
if (*size < sec->struct_size) {
*size = sec->struct_size;
VB2_DEBUG("secdata_kernel: incomplete data (missing %d bytes)",
VB2_DEBUG("secdata_kernel: incomplete data (missing %d bytes)\n",
sec->struct_size - *size);
*size = sec->struct_size;
return VB2_ERROR_SECDATA_KERNEL_INCOMPLETE;
}
@ -112,7 +112,7 @@ static vb2_error_t secdata_kernel_check_v1(struct vb2_context *ctx,
vb2_error_t vb2api_secdata_kernel_check(struct vb2_context *ctx, uint8_t *size)
{
if (*size < VB2_SECDATA_KERNEL_MIN_SIZE) {
VB2_DEBUG("secdata_kernel: data size too small!");
VB2_DEBUG("secdata_kernel: data size too small!\n");
*size = VB2_SECDATA_KERNEL_MIN_SIZE;
return VB2_ERROR_SECDATA_KERNEL_INCOMPLETE;
}