[PATCH master] efi: acpi: fix printf format specifier mismatch

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Nov 9 03:59:54 PST 2023


entry_count has type size_t and not long as the format string wrongly
suggested.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/bus/acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/acpi.c b/drivers/bus/acpi.c
index f69789200633..ac034cce4569 100644
--- a/drivers/bus/acpi.c
+++ b/drivers/bus/acpi.c
@@ -186,7 +186,7 @@ static int acpi_register_devices(struct bus_type *bus)
 		return -EIO;
 	}
 
-	dev_info(bus->dev, "Found %s (OEM: %.8s) with %lu entries\n",
+	dev_info(bus->dev, "Found %s (OEM: %.8s) with %zu entries\n",
 		sig, root->sdt.oem_id, entry_count);
 
 	for (i = 0; i < entry_count; i++) {
-- 
2.39.2




More information about the barebox mailing list