]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: fix formatting of uclass dump
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 19 Apr 2022 16:46:36 +0000 (18:46 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jun 2022 02:09:51 +0000 (03:09 +0100)
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

index fe97dca954d3cc1c7a162dc029cecbeb110af4b2..21d9e7a91f721dc94afbd21eb8b47334c27529c5 100644 (file)
@@ -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++;