[PATCH 1/1] dm: fix formatting of uclass dump

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Apr 19 18:46:36 CEST 2022


Insert an empty line after each uclass independent of whether it has
devices or not.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 drivers/core/dump.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/core/dump.c b/drivers/core/dump.c
index f2f9cacc56..253e5bb4b5 100644
--- a/drivers/core/dump.c
+++ b/drivers/core/dump.c
@@ -89,8 +89,6 @@ void dm_dump_uclass(void)
 			continue;
 
 		printf("uclass %d: %s\n", id, uc->uc_drv->name);
-		if (list_empty(&uc->dev_head))
-			continue;
 		uclass_foreach_dev(dev, uc) {
 			dm_display_line(dev, i);
 			i++;
-- 
2.34.1



More information about the U-Boot mailing list