diff mbox series

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

Message ID 20220419164636.208936-1-heinrich.schuchardt@canonical.com
State Accepted
Commit d3eb1bf7cf242440c966ff20114abbe7f94c4a46
Delegated to: Simon Glass
Headers show
Series [1/1] dm: fix formatting of uclass dump | expand

Commit Message

Heinrich Schuchardt April 19, 2022, 4:46 p.m. UTC
Insert an empty line after each uclass independent of whether it has
devices or not.

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

Comments

Simon Glass June 28, 2022, 1:38 p.m. UTC | #1
Insert an empty line after each uclass independent of whether it has
devices or not.

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

Applied to u-boot-dm, thanks!
diff mbox series

Patch

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++;