summaryrefslogtreecommitdiffstats
path: root/commands/iomem.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/iomem.c')
-rw-r--r--commands/iomem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/iomem.c b/commands/iomem.c
index 70355fd1e9..c22878c1c8 100644
--- a/commands/iomem.c
+++ b/commands/iomem.c
@@ -32,8 +32,7 @@ static void __print_resources(struct resource *res, int indent)
printf(PRINTF_CONVERSION_RESOURCE " - " PRINTF_CONVERSION_RESOURCE
" (size " PRINTF_CONVERSION_RESOURCE ") %s\n", res->start,
- res->start + res->size - 1,
- res->size, res->name);
+ res->end, resource_size(res), res->name);
list_for_each_entry(r, &res->children, sibling)
__print_resources(r, indent + 1);