summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/devinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c
index 806e45c9ba..75bc9d44b4 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -33,9 +33,10 @@ static int do_devinfo_subtree(struct device_d *dev, int depth)
list_for_each_entry(cdev, &dev->cdevs, devices_list) {
for (i = 0; i < depth + 1; i++)
printf(" ");
- printf("`---- 0x%08llx-0x%08llx: /dev/%s\n",
+ printf("`---- 0x%08llx-0x%08llx (%10s): /dev/%s\n",
cdev->offset,
cdev->offset + cdev->size - 1,
+ size_human_readable(cdev->size),
cdev->name);
}
} else {