[PATCH 03/12] acpi: acpitables: use PRIu32 format specifier for a uint32_t type
Colin King
colin.king at canonical.com
Thu Sep 6 14:19:52 UTC 2018
From: Colin Ian King <colin.king at canonical.com>
Don't use %d, use PRIu32 for uint32_t type
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/acpi/acpitables/acpitables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c
index c32b42c0..813c3073 100644
--- a/src/acpi/acpitables/acpitables.c
+++ b/src/acpi/acpitables/acpitables.c
@@ -91,7 +91,7 @@ static int acpi_table_check_test1(fwts_framework *fw)
*/
if (hdr->length < sizeof(fwts_acpi_table_header)) {
fwts_failed(fw, LOG_LEVEL_HIGH, "ACPITableHdrShort",
- "ACPI Table %s is too short, only %d bytes long. Further "
+ "ACPI Table %s is too short, only %" PRIu32 " bytes long. Further "
"header checks will be omitted.", name, hdr->length);
continue;
}
--
2.17.1
More information about the fwts-devel
mailing list