From 07dda337b78be64c6064fcce14ccb5d1f7fdace2 Mon Sep 17 00:00:00 2001 From: Benjamin Doron Date: Fri, 5 Feb 2021 00:23:46 +0000 Subject: acpi: Fix BERT size_t printf format error Fix compilation on GCC 10.2.1 and address the underlying issue. The printf format specifier for a size_t type is z. Change-Id: Ieb1db6c0c3eb4947bd3617e418bac238b70ec08f Signed-off-by: Benjamin Doron Reviewed-on: https://review.coreboot.org/c/coreboot/+/50051 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes Reviewed-by: Angel Pons --- src/arch/x86/acpi_bert_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/acpi_bert_storage.c b/src/arch/x86/acpi_bert_storage.c index ec31917444..f1dcf47c23 100644 --- a/src/arch/x86/acpi_bert_storage.c +++ b/src/arch/x86/acpi_bert_storage.c @@ -200,7 +200,7 @@ void *new_cper_fw_error_crashlog(acpi_generic_error_status_t *status, size_t cl_ { void *cl_data = bert_allocate_storage(cl_size); if (!cl_data) { - printk(BIOS_ERR, "Error: Crashlog entry (size %lu) would exceed available region\n", + printk(BIOS_ERR, "Error: Crashlog entry (size %zu) would exceed available region\n", cl_size); return NULL; } -- cgit v1.2.3