summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-09-14 15:52:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-14 15:52:49 +0200
commit36b901f5a62ff334fb7768aca644fe11f1efbc10 (patch)
treec13435f554963aa346411380abc30a91a94dd01d /commands
parenta9a07aa1cd94b30335e0c82c8d36e9bc7d784e49 (diff)
parent880c6b5e6f26c674821172bc4e982796e7dd5f0e (diff)
downloadbarebox-36b901f5a62ff334fb7768aca644fe11f1efbc10.tar.gz
Merge branch 'for-next/arm'
Diffstat (limited to 'commands')
-rw-r--r--commands/iomemport.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/commands/iomemport.c b/commands/iomemport.c
index d0cfc413c2..f2baa0e293 100644
--- a/commands/iomemport.c
+++ b/commands/iomemport.c
@@ -16,11 +16,14 @@ static void __print_resources(struct resource *res, int indent)
for (i = 0; i < indent; i++)
printf(" ");
- printf("%pa - %pa (size %pa) %s\n",
- &res->start, &res->end, &size, res->name);
+ printf("%pa - %pa (size %pa) %s%s\n",
+ &res->start, &res->end, &size,
+ res->flags & IORESOURCE_BUSY ? "[R] " : "",
+ res->name);
- list_for_each_entry(r, &res->children, sibling)
+ list_for_each_entry(r, &res->children, sibling) {
__print_resources(r, indent + 1);
+ }
}
static void print_resources(struct resource *res)