summaryrefslogtreecommitdiffstats
path: root/commands/devinfo.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-06-04 21:03:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-04 21:03:36 +0200
commit6331e58a2c99009587eeb2252d0c6ac9de882c1c (patch)
tree8e0765c965faf098151107a7374cd3b554811868 /commands/devinfo.c
parent4c37b77af4759b65058c3aee5eed4d809ac96d84 (diff)
parentae6d0b9b26dd0a28b93a227bcdc15053a99c7a88 (diff)
downloadbarebox-6331e58a2c99009587eeb2252d0c6ac9de882c1c.tar.gz
Merge branch 'for-next/misc'
Conflicts: commands/devinfo.c
Diffstat (limited to 'commands/devinfo.c')
-rw-r--r--commands/devinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c
index eb36f33..052a4a0 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 {