From 4cd8f6192414acf958568ec51d5caf290048de91 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 13 May 2022 16:38:37 +0200 Subject: [PATCH] soc/intel/acpi_bert.c: Fix formatted print type for size_t Change-Id: I2b02bcecda2257f191c0d0fc9935b1eb673ab3d2 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/64335 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/soc/intel/common/block/acpi/acpi_bert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/soc/intel/common/block/acpi/acpi_bert.c b/src/soc/intel/common/block/acpi/acpi_bert.c index beb131ee1b..779466c8ad 100644 --- a/src/soc/intel/common/block/acpi/acpi_bert.c +++ b/src/soc/intel/common/block/acpi/acpi_bert.c @@ -61,12 +61,12 @@ enum cb_err acpi_soc_get_bert_region(void **region, size_t *length) if (cpu_record_size) { cl_data = new_cper_fw_error_crashlog(status, cpu_record_size); if (!cl_data) { - printk(BIOS_ERR, "Crashlog CPU entry(size %lu) " + printk(BIOS_ERR, "Crashlog CPU entry(size %zu) " "would exceed available region\n", cpu_record_size); return CB_ERR; } - printk(BIOS_DEBUG, "cl_data %p, cpu_record_size %lu\n", + printk(BIOS_DEBUG, "cl_data %p, cpu_record_size %zu\n", cl_data, cpu_record_size); cl_fill_cpu_records(cl_data); } @@ -82,12 +82,12 @@ enum cb_err acpi_soc_get_bert_region(void **region, size_t *length) cl_data = new_cper_fw_error_crashlog(status, pmc_record_size); if (!cl_data) { - printk(BIOS_ERR, "Crashlog PMC entry(size %lu) " + printk(BIOS_ERR, "Crashlog PMC entry(size %zu) " "would exceed available region\n", pmc_record_size); return CB_ERR; } - printk(BIOS_DEBUG, "cl_data %p, pmc_record_size %lu\n", + printk(BIOS_DEBUG, "cl_data %p, pmc_record_size %zu\n", cl_data, pmc_record_size); cl_fill_pmc_records(cl_data); }