You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/03/14 18:02:36 UTC

[mynewt-newt] 02/03: Print sysinit dependencis in sysinit config output

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git

commit 1a8f2c4133452d949eac88f5b0c436dc5b3c65a7
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Mar 7 10:48:11 2022 +0100

    Print sysinit dependencis in sysinit config output
---
 newt/cli/target_cfg_cmds.go | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/newt/cli/target_cfg_cmds.go b/newt/cli/target_cfg_cmds.go
index 8ea1ba0..f7a0dc9 100644
--- a/newt/cli/target_cfg_cmds.go
+++ b/newt/cli/target_cfg_cmds.go
@@ -483,8 +483,17 @@ func printStage(sf stage.StageFunc) {
 	util.StatusMessage(util.VERBOSITY_DEFAULT, "%s:\n", sf.Name)
 	util.StatusMessage(util.VERBOSITY_DEFAULT, "    Package: %s\n",
 		sf.Pkg.FullName())
-	util.StatusMessage(util.VERBOSITY_DEFAULT, "    Stage:  %s\n",
-		valSettingString(sf.Stage))
+	if len(sf.Stage.Afters) > 0 || len(sf.Stage.Befores) > 0 {
+		for _, s := range sf.Stage.Afters {
+			util.StatusMessage(util.VERBOSITY_DEFAULT, "    After:   %s\n", s)
+		}
+		for _, s := range sf.Stage.Befores {
+			util.StatusMessage(util.VERBOSITY_DEFAULT, "    Before:  %s\n", s)
+		}
+	} else {
+		util.StatusMessage(util.VERBOSITY_DEFAULT, "    Stage:   %s\n",
+			valSettingString(sf.Stage))
+	}
 }
 
 func printStageBriefOne(sf stage.StageFunc,