superio/common: Fix types in printf

Found by Coverity Scan #1405310

Change-Id: I53146e7fc402500effc63ce276ecfce4d72a4f7f
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35433
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Georgi 2019-09-16 12:17:59 +02:00 committed by Felix Held
parent 0ffdeef681
commit 28cbab3956
1 changed files with 2 additions and 2 deletions

View File

@ -127,11 +127,11 @@ static void ldn_gen_resources_use(struct device *dev)
if (!res || !res->base || !res->size) if (!res || !res->base || !res->size)
continue; continue;
snprintf(name, sizeof(name), "IO%XB", i); snprintf(name, sizeof(name), "IO%zXB", i);
name[4] = '\0'; name[4] = '\0';
acpigen_write_name_integer(name, res->base); acpigen_write_name_integer(name, res->base);
snprintf(name, sizeof(name), "IO%XS", i); snprintf(name, sizeof(name), "IO%zXS", i);
name[4] = '\0'; name[4] = '\0';
acpigen_write_name_integer(name, res->size); acpigen_write_name_integer(name, res->size);
} }