From 28cbab3956981e735da2e9d00ae9255171588bfa Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 16 Sep 2019 12:17:59 +0200 Subject: superio/common: Fix types in printf Found by Coverity Scan #1405310 Change-Id: I53146e7fc402500effc63ce276ecfce4d72a4f7f Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/35433 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/superio/common/ssdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/superio') diff --git a/src/superio/common/ssdt.c b/src/superio/common/ssdt.c index 035f06a71e..a919aa5620 100644 --- a/src/superio/common/ssdt.c +++ b/src/superio/common/ssdt.c @@ -127,11 +127,11 @@ static void ldn_gen_resources_use(struct device *dev) if (!res || !res->base || !res->size) continue; - snprintf(name, sizeof(name), "IO%XB", i); + snprintf(name, sizeof(name), "IO%zXB", i); name[4] = '\0'; acpigen_write_name_integer(name, res->base); - snprintf(name, sizeof(name), "IO%XS", i); + snprintf(name, sizeof(name), "IO%zXS", i); name[4] = '\0'; acpigen_write_name_integer(name, res->size); } -- cgit v1.2.3