Skip to content
Snippets Groups Projects
Commit 928ffdf7 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

provide more information and more color

parent 04a71668
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <s6/supervise.h> #include <s6/supervise.h>
int info_graph_display_service(char const *name, char const *obj) int info_graph_display_service(char const *name)
{ {
log_flow() ; log_flow() ;
...@@ -89,21 +89,21 @@ int info_graph_display_service(char const *name, char const *obj) ...@@ -89,21 +89,21 @@ int info_graph_display_service(char const *name, char const *obj)
dis: dis:
if (!bprintf(buffer_1," %s (%s%s%s,%s%s%s,%s%s%s,%s:%s)", \ if (!bprintf(buffer_1,"%s (%s%s%s%s,%s%s%s%s,%s%s%s%s,%s%s%s%s)", \
name, \ name, \
pid_color > 1 ? log_color->valid : pid_color ? log_color->error : log_color->warning, \ "pid=",pid_color > 1 ? log_color->valid : pid_color ? log_color->error : log_color->warning, \
ppid, \ ppid, \
log_color->off, \ log_color->off, \
service_is(&sta, STATE_FLAGS_ISENABLED) ? log_color->off : log_color->warning, \ "state=", service_is(&sta, STATE_FLAGS_ISENABLED) ? log_color->off : log_color->warning, \
service_is(&sta, STATE_FLAGS_ISENABLED) ? "Enabled" : "Disabled", \ service_is(&sta, STATE_FLAGS_ISENABLED) ? "Enabled" : "Disabled", \
log_color->off, \ log_color->off, \
log_color->blue, get_key_by_enum(ENUM_TYPE,res.type), log_color->off, \ "type=", log_color->blue, get_key_by_enum(ENUM_TYPE,res.type), log_color->off, \
"tree", res.sa.s + res.treename )) "intree=", BMAGENTA, res.sa.s + res.treename, log_color->off ))
goto freed ; goto freed ;
err = 1 ; err = 1 ;
......
...@@ -75,7 +75,7 @@ int info_graph_display_tree(char const *name) ...@@ -75,7 +75,7 @@ int info_graph_display_tree(char const *name)
if (enabled < 0) if (enabled < 0)
goto freed ; goto freed ;
if (!bprintf(buffer_1," %s (%s%s%s,%s%s%s,%s%s%s)", \ if (!bprintf(buffer_1,"%s (%s%s%s,%s%s%s,%s%s%s)", \
name, \ name, \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment