[PATCH] acpi: bert: fix format specifiers for boot error region

Colin King colin.king at canonical.com
Fri Apr 1 07:28:33 UTC 2016


From: Colin Ian King <colin.king at canonical.com>

The print format specifiers are broken, fix them

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpi/bert/bert.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/acpi/bert/bert.c b/src/acpi/bert/bert.c
index c7bd07a..d2b254c 100644
--- a/src/acpi/bert/bert.c
+++ b/src/acpi/bert/bert.c
@@ -103,13 +103,13 @@ static int bert_test1(fwts_framework *fw)
 				(region->block_status >> 3) & 1);
 			fwts_log_info_verbatum(fw, "  Block Status:  bit [13:4] 0x%" PRIx32 " (Error Data Entry Count)",
 				(region->block_status >> 4) & 0x3ff);
-			fwts_log_info_verbatum(fw, "  Raw Data Offset:          0x8.8%" PRIx32,
+			fwts_log_info_verbatum(fw, "  Raw Data Offset:          0x%8.8" PRIx32,
 				region->raw_data_offset);
-			fwts_log_info_verbatum(fw, "  Raw Data Length:          0x8.8%" PRIx32,
+			fwts_log_info_verbatum(fw, "  Raw Data Length:          0x%8.8" PRIx32,
 				region->raw_data_length);
-			fwts_log_info_verbatum(fw, "  Data Length:              0x8.8%" PRIx32,
+			fwts_log_info_verbatum(fw, "  Data Length:              0x%8.8" PRIx32,
 				region->data_length);
-			fwts_log_info_verbatum(fw, "  Error Severity            0x8.8%" PRIx32,
+			fwts_log_info_verbatum(fw, "  Error Severity            0x%8.8" PRIx32,
 				region->error_severity);
 
 			/* Sanity check raw data fields */
-- 
2.7.4




More information about the fwts-devel mailing list