From f14e731ec64c64c64868db81ef0870285d1b2eea Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 22 Sep 2020 20:33:08 +1000 Subject: [PATCH] mw_debug: Display terminated status when stopping Signed-off-by: Paul Mackerras --- scripts/mw_debug/mw_debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/mw_debug/mw_debug.c b/scripts/mw_debug/mw_debug.c index 75b51af..d03e61c 100644 --- a/scripts/mw_debug/mw_debug.c +++ b/scripts/mw_debug/mw_debug.c @@ -390,9 +390,11 @@ static void core_status(void) statstr2 = " (restarting?)"; else if (stat & DBG_CORE_STAT_TERM) statstr2 = " (terminated)"; - } else if (stat & DBG_CORE_STAT_STOPPING) + } else if (stat & DBG_CORE_STAT_STOPPING) { statstr = "stopping"; - else if (stat & DBG_CORE_STAT_TERM) + if (stat & DBG_CORE_STAT_TERM) + statstr2 = " (terminated)"; + } else if (stat & DBG_CORE_STAT_TERM) statstr = "odd state (TERM but no STOP)"; printf("Core: %s%s\n", statstr, statstr2); printf(" NIA: %016" PRIx64 "\n", nia); -- 2.30.2