From 122cf0962c3627411311bc010ec704256e88fff9 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Fri, 17 Feb 2023 21:42:48 +1100 Subject: [PATCH] bye bye blink blink --- src/lib66/exec/ssexec_tree_status.c | 6 +++--- src/lib66/info/info_graph_display_service.c | 2 +- src/lib66/info/info_graph_display_tree.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib66/exec/ssexec_tree_status.c b/src/lib66/exec/ssexec_tree_status.c index 93d7a415..702b37ba 100644 --- a/src/lib66/exec/ssexec_tree_status.c +++ b/src/lib66/exec/ssexec_tree_status.c @@ -95,7 +95,7 @@ static void info_display_current(char const *field,char const *treename) log_dieu(LOG_EXIT_ZERO, "read resolve file of: ", treename) ; if (NOFIELD) info_display_field_name(field) ; - if (!bprintf(buffer_1,"%s%s%s", current ? log_color->blink : log_color->warning, current ? "yes":"no",log_color->off)) + if (!bprintf(buffer_1,"%s%s%s", current ? log_color->valid : log_color->warning, current ? "yes":"no",log_color->off)) log_dieusys(LOG_EXIT_SYS,"write to stdout") ; if (buffer_putsflush(buffer_1,"\n") == -1) @@ -355,8 +355,8 @@ static void info_display_contents(char const *field, char const *treename) graph_build_service(&graph, ares, &areslen, pinfo, STATE_FLAGS_TOPROPAGATE|STATE_FLAGS_WANTUP) ; - if (!graph.mlen) - log_die(LOG_EXIT_USER, "services selection is not available -- please make a bug report") ; + if (!areslen) + goto empty ; if (GRAPH) { diff --git a/src/lib66/info/info_graph_display_service.c b/src/lib66/info/info_graph_display_service.c index f363d85e..501a27e9 100644 --- a/src/lib66/info/info_graph_display_service.c +++ b/src/lib66/info/info_graph_display_service.c @@ -103,7 +103,7 @@ int info_graph_display_service(char const *name) "type=", log_color->blue, get_key_by_enum(ENUM_TYPE,res.type), log_color->off, \ - "intree=", BMAGENTA, res.sa.s + res.treename, log_color->off )) + "tree=", BMAGENTA, res.sa.s + res.treename, log_color->off )) goto freed ; err = 1 ; diff --git a/src/lib66/info/info_graph_display_tree.c b/src/lib66/info/info_graph_display_tree.c index 59b35711..7cd48eb8 100644 --- a/src/lib66/info/info_graph_display_tree.c +++ b/src/lib66/info/info_graph_display_tree.c @@ -50,7 +50,7 @@ int info_graph_display_tree(char const *name) auto_strings(base, sa.s) ; if (tree_isvalid(sa.s, name) <= 0) { - log_warn("invalide tree: ", name) ; + log_warn("invalid tree: ", name) ; goto freed ; } -- GitLab