[PATCH 03/18] acpi: checksum: print format using inttypes
Colin King
colin.king at canonical.com
Sun Sep 23 19:03:46 UTC 2012
From: Colin Ian King <colin.king at canonical.com>
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/acpi/checksum/checksum.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/acpi/checksum/checksum.c b/src/acpi/checksum/checksum.c
index 6e937ec..6080c37 100644
--- a/src/acpi/checksum/checksum.c
+++ b/src/acpi/checksum/checksum.c
@@ -34,8 +34,8 @@ static void checksum_rsdp(fwts_framework *fw, fwts_acpi_table_info *table)
if (table->length < 20) {
fwts_failed(fw, LOG_LEVEL_HIGH, "ACPITableCheckSumShortRSDP",
"RSDP was expected to be at least 20 bytes long, "
- "got a shortened size of %d bytes.",
- (int)table->length);
+ "got a shortened size of %zd bytes.",
+ table->length);
/* Won't test on a short RSDP */
return;
}
@@ -47,7 +47,7 @@ static void checksum_rsdp(fwts_framework *fw, fwts_acpi_table_info *table)
"RSDP has incorrect checksum, expected 0x%2.2x, "
"got 0x%2.2x.",
(uint8_t)(rsdp->checksum)-checksum, rsdp->checksum);
- fwts_advice(fw,
+ fwts_advice(fw,
"The kernel will not load the RSDP with an "
"invalid checksum and hence all other ACPI "
"tables will also fail to load.");
--
1.7.10.4
More information about the fwts-devel
mailing list