summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorLiviu Dudau <Liviu.Dudau@foss.arm.com>2018-10-15 10:03:06 +0100
committerSimon Glass <sjg@chromium.org>2018-11-20 19:14:22 -0700
commit5197dafc42eb926525a12fc5aa38d2a05f22d177 (patch)
treeabaf52e0fde2db330c345ac369f66a0fca18c27f /drivers/core
parent0c943e5da64987a622544cafab791caee6e14c9d (diff)
dm: core: Widen the dump tree to show more of the driver's name.
With drivers that have prefix names that are quite long (like 'versatile_') it is useful to have a wider column for the driver's name when dumping the device driver tree. Also update the tests to take into account the wider output format. Signed-off-by: Liviu Dudau <liviu.dudau@foss.arm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/core/dump.c b/drivers/core/dump.c
index 9068084404..04217cbde8 100644
--- a/drivers/core/dump.c
+++ b/drivers/core/dump.c
@@ -15,8 +15,8 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)
int i, is_last;
struct udevice *child;
- /* print the first 11 characters to not break the tree-format. */
- printf(" %-10.10s %d [ %c ] %-10.10s ", dev->uclass->uc_drv->name,
+ /* print the first 20 characters to not break the tree-format. */
+ printf(" %-10.10s %d [ %c ] %-20.20s ", dev->uclass->uc_drv->name,
dev_get_uclass_index(dev, NULL),
dev->flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name);
@@ -49,8 +49,8 @@ void dm_dump_all(void)
root = dm_root();
if (root) {
- printf(" Class index Probed Driver Name\n");
- printf("-----------------------------------------\n");
+ printf(" Class index Probed Driver Name\n");
+ printf("-----------------------------------------------------------\n");
show_devices(root, -1, 0);
}
}