diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-14 15:52:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-14 15:52:49 +0200 |
commit | 36b901f5a62ff334fb7768aca644fe11f1efbc10 (patch) | |
tree | c13435f554963aa346411380abc30a91a94dd01d /commands | |
parent | a9a07aa1cd94b30335e0c82c8d36e9bc7d784e49 (diff) | |
parent | 880c6b5e6f26c674821172bc4e982796e7dd5f0e (diff) | |
download | barebox-36b901f5a62ff334fb7768aca644fe11f1efbc10.tar.gz |
Merge branch 'for-next/arm'
Diffstat (limited to 'commands')
-rw-r--r-- | commands/iomemport.c | 9 |
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) |