Skip to content

Commit 944b473

Browse files
committed
src/security/intel/txt/common.c: Fix printing error codes
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
1 parent eef93e7 commit 944b473

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/security/intel/txt/common.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@ int intel_txt_log_acm_error(const uint32_t acm_error)
8383
>> ACMERROR_TXT_PROGRESS_SHIFT;
8484

8585
if (!minor) {
86-
if (class == 0 && major == 0 && progress > 0) {
86+
if (class == 0 && major == 0 && minor == 0) {
8787
printk(BIOS_ERR, " Execution successful\n");
8888
printk(BIOS_ERR, " Progress code 0x%x\n", progress);
8989
} else {
9090
printk(BIOS_ERR, " Error Class: %x\n", class);
91-
printk(BIOS_ERR, " Error: %x.%x\n", major, progress);
91+
printk(BIOS_ERR, " Error: %x.%x\n", major, minor);
92+
printk(BIOS_ERR, " Progress code 0x%x\n", progress);
9293
}
9394
} else {
9495
printk(BIOS_ERR, " ACM didn't start\n");

0 commit comments

Comments
 (0)