diff options
author | Holger Schurig <holgerschurig@gmail.com> | 2014-05-30 11:07:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-02 09:19:50 +0200 |
commit | 561ed0a393000a763437a1a20cce638adcf95385 (patch) | |
tree | a99f9acba0805a448aef6e6f4546703421a71a5c /commands/devinfo.c | |
parent | 93ba05b5fded2817d6e19a82be5871cf6d2238c2 (diff) | |
download | barebox-561ed0a393000a763437a1a20cce638adcf95385.tar.gz barebox-561ed0a393000a763437a1a20cce638adcf95385.tar.xz |
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>
Diffstat (limited to 'commands/devinfo.c')
-rw-r--r-- | commands/devinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c index ba1671b6e2..eb36f33ba7 100644 --- a/commands/devinfo.c +++ b/commands/devinfo.c @@ -25,15 +25,15 @@ static int do_devinfo_subtree(struct device_d *dev, int depth) int i; for (i = 0; i < depth; i++) - printf(" "); + printf(" "); - printf("`---- %s", dev_name(dev)); + printf("`-- %s", dev_name(dev)); if (!list_empty(&dev->cdevs)) { printf("\n"); 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(" "); + printf("`-- 0x%08llx-0x%08llx: /dev/%s\n", cdev->offset, cdev->offset + cdev->size - 1, cdev->name); |