diff options
author | Patrick Georgi <pgeorgi@google.com> | 2019-09-16 12:17:59 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2019-09-17 10:33:40 +0000 |
commit | 28cbab3956981e735da2e9d00ae9255171588bfa (patch) | |
tree | b30fc1bd0cd0e1de9166d9e129261b2ee658a50b /src/superio | |
parent | 0ffdeef681f5f17b1aa66d9b99f5501089ea7b1a (diff) | |
download | coreboot-28cbab3956981e735da2e9d00ae9255171588bfa.tar.xz |
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>
Diffstat (limited to 'src/superio')
-rw-r--r-- | src/superio/common/ssdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |