Skip to content

Commit 4024652

Browse files
committed
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. Signed-off-by: Liviu Dudau <liviu.dudau@foss.arm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
1 parent ca5025f commit 4024652

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/core/dump.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)
1515
int i, is_last;
1616
struct udevice *child;
1717

18-
/* print the first 11 characters to not break the tree-format. */
19-
printf(" %-10.10s %d [ %c ] %-10.10s ", dev->uclass->uc_drv->name,
18+
/* print the first 20 characters to not break the tree-format. */
19+
printf(" %-10.10s %d [ %c ] %-20.20s ", dev->uclass->uc_drv->name,
2020
dev_get_uclass_index(dev, NULL),
2121
dev->flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name);
2222

@@ -49,8 +49,8 @@ void dm_dump_all(void)
4949

5050
root = dm_root();
5151
if (root) {
52-
printf(" Class index Probed Driver Name\n");
53-
printf("-----------------------------------------\n");
52+
printf(" Class index Probed Driver Name\n");
53+
printf("-----------------------------------------------------------\n");
5454
show_devices(root, -1, 0);
5555
}
5656
}

0 commit comments

Comments
 (0)