Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/75400?usp=email )
(
2 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: device/resource_allocator_v4.c: Fix printing unsigned integers ......................................................................
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 --- M src/device/resource_allocator_v4.c 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: Angel Pons: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/src/device/resource_allocator_v4.c b/src/device/resource_allocator_v4.c index 2f4ea12..0a83d29 100644 --- a/src/device/resource_allocator_v4.c +++ b/src/device/resource_allocator_v4.c @@ -61,7 +61,7 @@ */ 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 @@ */ 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 @@ 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 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); }