diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-05-23 22:47:05 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-06-01 12:00:38 +0000 |
commit | d436b1626ced20e79e8a007e6cc266dad2956920 (patch) | |
tree | a3d770aad26e05808bfa5bf5fe1c5a73ad3179be /src/device/resource_allocator_v4.c | |
parent | 68b2b8fead011d9f081b4b49a3fa19673a8d144b (diff) |
device/resource_allocator_v4.c: Fix printing unsigned integers
Use the proper format specifier for unsigned integers.
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I5e39377d62981229531027b3153d5b343a0a7538
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75400
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device/resource_allocator_v4.c')
-rw-r--r-- | src/device/resource_allocator_v4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/device/resource_allocator_v4.c b/src/device/resource_allocator_v4.c index 2f4ea124f8..0a83d29a22 100644 --- a/src/device/resource_allocator_v4.c +++ b/src/device/resource_allocator_v4.c @@ -61,7 +61,7 @@ static void update_bridge_resource(const struct device *bridge, struct resource */ base = 0; - res_printk(print_depth, "%s %s: size: %llx align: %d gran: %d limit: %llx\n", + res_printk(print_depth, "%s %s: size: %llx align: %u gran: %u limit: %llx\n", dev_path(bridge), resource2str(bridge_res), bridge_res->size, bridge_res->align, bridge_res->gran, bridge_res->limit); @@ -136,7 +136,7 @@ static void update_bridge_resource(const struct device *bridge, struct resource */ bridge_res->size = ALIGN_UP(base, POWER_OF_2(bridge_res->gran)); - res_printk(print_depth, "%s %s: size: %llx align: %d gran: %d limit: %llx done\n", + res_printk(print_depth, "%s %s: size: %llx align: %u gran: %u limit: %llx done\n", dev_path(bridge), resource2str(bridge_res), bridge_res->size, bridge_res->align, bridge_res->gran, bridge_res->limit); } @@ -319,7 +319,7 @@ static void initialize_domain_memranges(const struct device *dev, struct memrang if ((res->flags & IORESOURCE_TYPE_MASK) != memrange_type) continue; - printk(BIOS_DEBUG, "%s %s: base: %llx size: %llx align: %d gran: %d limit: %llx\n", + printk(BIOS_DEBUG, "%s %s: base: %llx size: %llx align: %u gran: %u limit: %llx\n", dev_path(dev), resource2str(res), res->base, res->size, res->align, res->gran, res->limit); @@ -518,7 +518,7 @@ static void setup_resource_ranges(const struct device *dev, unsigned long type, static void print_resource_done(const struct device *dev, const struct resource *res) { - printk(BIOS_DEBUG, "%s %s: base: %llx size: %llx align: %d gran: %d limit: %llx done\n", + printk(BIOS_DEBUG, "%s %s: base: %llx size: %llx align: %u gran: %u limit: %llx done\n", dev_path(dev), resource2str(res), res->base, res->size, res->align, res->gran, res->limit); } |