summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2024-08-02 11:28:12 +0200
committerTom Rini <[email protected]>2024-08-27 14:30:02 -0600
commit2d76e724b412bbe8cfed2157f78a3fb2602c2d6d (patch)
tree295d09cb166e58bb96380627882027a24fb4f625 /drivers
parent8a5642fa840308875ffff388dd87636f68725883 (diff)
dm: core: Show device sequence instead in dm_dump_tree()
Currently uclass index is shown in DM tree dump which ignores alias sequence numbering. The result could be confusing since these 2 numbers could be different. Show device sequence number instead as it's more meaningful. Also update documentation to use sequence number. Signed-off-by: Zixun LI <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/dump.c b/drivers/core/dump.c
index 5ec30d5b3c1..5cbaa97fa31 100644
--- a/drivers/core/dump.c
+++ b/drivers/core/dump.c
@@ -40,7 +40,7 @@ static void show_devices(struct udevice *dev, int depth, int last_flag,
/* print the first 20 characters to not break the tree-format. */
printf(CONFIG_IS_ENABLED(USE_TINY_PRINTF) ? " %s %d [ %c ] %s " :
" %-10.10s %3d [ %c ] %-20.20s ", dev->uclass->uc_drv->name,
- dev_get_uclass_index(dev, NULL),
+ dev->seq_,
flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name);
for (i = depth; i >= 0; i--) {
@@ -129,7 +129,7 @@ void dm_dump_tree(char *dev_name, bool extended, bool sort)
{
struct udevice *root;
- printf(" Class Index Probed Driver Name\n");
+ printf(" Class Seq Probed Driver Name\n");
printf("-----------------------------------------------------------\n");
root = dm_root();