treewide: convert to %#x hex prints
Convert hex print values to use the %#x qualifier to print 0x{value}.
BUG=b:296439237
TEST=build and boot to Skyrim
BRANCH=None
Change-Id: I0d1ac4b920530635fb758c5165a6a99c11b414c8
Signed-off-by: Jon Murphy <jpmurphy@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78183
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
901f0400b7
commit
53fc667943
21 changed files with 63 additions and 63 deletions
|
|
@ -45,7 +45,7 @@ static int cr50_is_reset_needed(void)
|
|||
return 1;
|
||||
} else if (rc != TPM_SUCCESS) {
|
||||
/* TPM command failed, continue booting. */
|
||||
printk(BIOS_ERR, "Attempt to get CR50 TPM mode failed: %x\n", rc);
|
||||
printk(BIOS_ERR, "Attempt to get CR50 TPM mode failed: %#x\n", rc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ static void enable_update(void *unused)
|
|||
rc = tlcl_lib_init();
|
||||
|
||||
if (rc != VB2_SUCCESS) {
|
||||
printk(BIOS_ERR, "tlcl_lib_init() failed for CR50 update: %x\n",
|
||||
printk(BIOS_ERR, "tlcl_lib_init() failed for CR50 update: %#x\n",
|
||||
rc);
|
||||
return;
|
||||
}
|
||||
|
|
@ -97,7 +97,7 @@ static void enable_update(void *unused)
|
|||
&num_restored_headers);
|
||||
|
||||
if (rc != TPM_SUCCESS) {
|
||||
printk(BIOS_ERR, "Attempt to enable CR50 update failed: %x\n",
|
||||
printk(BIOS_ERR, "Attempt to enable CR50 update failed: %#x\n",
|
||||
rc);
|
||||
return;
|
||||
}
|
||||
|
|
@ -150,7 +150,7 @@ static void enable_update(void *unused)
|
|||
* booting but the current boot will likely end up at
|
||||
* the recovery screen.
|
||||
*/
|
||||
printk(BIOS_ERR, "Attempt to reset CR50 failed: %x\n",
|
||||
printk(BIOS_ERR, "Attempt to reset CR50 failed: %#x\n",
|
||||
rc);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ void cse_board_reset(void)
|
|||
/* Initialize TPM and get the cr50 firmware version. */
|
||||
rc = tlcl_lib_init();
|
||||
if (rc != VB2_SUCCESS) {
|
||||
printk(BIOS_ERR, "tlcl_lib_init() failed: 0x%x\n", rc);
|
||||
printk(BIOS_ERR, "tlcl_lib_init() failed: %#x\n", rc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,13 +18,13 @@ static void disable_platform_hierarchy(void *unused)
|
|||
rc = tlcl_lib_init();
|
||||
|
||||
if (rc != VB2_SUCCESS) {
|
||||
printk(BIOS_ERR, "tlcl_lib_init() failed: %x\n", rc);
|
||||
printk(BIOS_ERR, "tlcl_lib_init() failed: %#x\n", rc);
|
||||
return;
|
||||
}
|
||||
|
||||
rc = tlcl_disable_platform_hierarchy();
|
||||
if (rc != TPM_SUCCESS)
|
||||
printk(BIOS_ERR, "Platform hierarchy disablement failed: %x\n",
|
||||
printk(BIOS_ERR, "Platform hierarchy disablement failed: %#x\n",
|
||||
rc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue