device: Fix 64Bit Device Resource Info Print

Use 0x016llx to print device resource info so that both 64bit and
32bit resources could be displayed correctly.

Signed-off-by: Gang Chen <gang.c.chen@intel.com>
Change-Id: I0ec4c47cca4a09ceb7dc929efaa5630b1f9df81c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66324
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Gang Chen 2022-07-02 01:24:09 +08:00 committed by Felix Held
parent ee443c8d3e
commit cfb90fd204
1 changed files with 2 additions and 2 deletions

View File

@ -522,7 +522,7 @@ void report_resource_stored(struct device *dev, const struct resource *resource,
snprintf(buf, sizeof(buf), snprintf(buf, sizeof(buf),
"bus %02x ", dev->link_list->secondary); "bus %02x ", dev->link_list->secondary);
} }
printk(BIOS_DEBUG, "%s %02lx <- [0x%010llx - 0x%010llx] size 0x%08llx " printk(BIOS_DEBUG, "%s %02lx <- [0x%016llx - 0x%016llx] size 0x%08llx "
"gran 0x%02x %s%s%s\n", dev_path(dev), resource->index, "gran 0x%02x %s%s%s\n", dev_path(dev), resource->index,
base, end, resource->size, resource->gran, buf, base, end, resource->size, resource->gran, buf,
resource_type(resource), comment); resource_type(resource), comment);
@ -800,7 +800,7 @@ void show_one_resource(int debug_level, struct device *dev,
end = resource_end(resource); end = resource_end(resource);
buf[0] = '\0'; buf[0] = '\0';
printk(debug_level, "%s %02lx <- [0x%010llx - 0x%010llx] " printk(debug_level, "%s %02lx <- [0x%016llx - 0x%016llx] "
"size 0x%08llx gran 0x%02x %s%s%s\n", dev_path(dev), "size 0x%08llx gran 0x%02x %s%s%s\n", dev_path(dev),
resource->index, base, end, resource->size, resource->gran, resource->index, base, end, resource->size, resource->gran,
buf, resource_type(resource), comment); buf, resource_type(resource), comment);