devinfo: reduce indentation
This patch reduces the indentation of "devinfo", to reduce the amount of overly long lines. And while we're at it, also remove the fixed-size of the human-readable area. As entries didn't align anyway (because of indentation), this was just eating more space without giving much more readability. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
93ba05b5fd
commit
561ed0a393
|
@ -25,15 +25,15 @@ static int do_devinfo_subtree(struct device_d *dev, int depth)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < depth; i++)
|
for (i = 0; i < depth; i++)
|
||||||
printf(" ");
|
printf(" ");
|
||||||
|
|
||||||
printf("`---- %s", dev_name(dev));
|
printf("`-- %s", dev_name(dev));
|
||||||
if (!list_empty(&dev->cdevs)) {
|
if (!list_empty(&dev->cdevs)) {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
list_for_each_entry(cdev, &dev->cdevs, devices_list) {
|
list_for_each_entry(cdev, &dev->cdevs, devices_list) {
|
||||||
for (i = 0; i < depth + 1; i++)
|
for (i = 0; i < depth + 1; i++)
|
||||||
printf(" ");
|
printf(" ");
|
||||||
printf("`---- 0x%08llx-0x%08llx: /dev/%s\n",
|
printf("`-- 0x%08llx-0x%08llx: /dev/%s\n",
|
||||||
cdev->offset,
|
cdev->offset,
|
||||||
cdev->offset + cdev->size - 1,
|
cdev->offset + cdev->size - 1,
|
||||||
cdev->name);
|
cdev->name);
|
||||||
|
|
Loading…
Reference in New Issue