diff mbox series

[3/4] main: Print enabled top-level targets during probe

Message ID 20200624043856.175528-4-amitay@ozlabs.org
State New
Headers show
Series Test improvements | expand

Commit Message

Amitay Isaacs June 24, 2020, 4:38 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 src/main.c | 18 ------------------
 1 file changed, 18 deletions(-)
diff mbox series

Patch

diff --git a/src/main.c b/src/main.c
index 5a5616d..032bcd8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -520,21 +520,6 @@  static bool parse_options(int argc, char *argv[])
 	return true;
 }
 
-static bool child_enabled(struct pdbg_target *target)
-{
-	struct pdbg_target *child;
-
-	pdbg_for_each_child_target(target, child) {
-		if (child_enabled(child))
-			return true;
-
-		if (pdbg_target_status(child) == PDBG_TARGET_ENABLED)
-			return true;
-	}
-
-	return false;
-}
-
 static void print_target(struct pdbg_target *target, int level)
 {
 	int i;
@@ -542,9 +527,6 @@  static void print_target(struct pdbg_target *target, int level)
 	enum pdbg_target_status status;
 	const char *classname;
 
-	if (level == 0 && !child_enabled(target))
-		return;
-
 	/* Does this target actually exist? */
 	status = pdbg_target_status(target);
 	if (status != PDBG_TARGET_ENABLED)