Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
928ffdf7
Commit
928ffdf7
authored
2 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
provide more information and more color
parent
04a71668
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib66/info/info_graph_display_service.c
+6
-6
6 additions, 6 deletions
src/lib66/info/info_graph_display_service.c
src/lib66/info/info_graph_display_tree.c
+1
-1
1 addition, 1 deletion
src/lib66/info/info_graph_display_tree.c
with
7 additions
and
7 deletions
src/lib66/info/info_graph_display_service.c
+
6
−
6
View file @
928ffdf7
...
...
@@ -30,7 +30,7 @@
#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
()
;
...
...
@@ -89,21 +89,21 @@ int info_graph_display_service(char const *name, char const *obj)
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
,
\
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
,
\
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"
,
\
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
))
"
in
tree
="
,
BMAGENTA
,
res
.
sa
.
s
+
res
.
treename
,
log_color
->
off
))
goto
freed
;
err
=
1
;
...
...
This diff is collapsed.
Click to expand it.
src/lib66/info/info_graph_display_tree.c
+
1
−
1
View file @
928ffdf7
...
...
@@ -75,7 +75,7 @@ int info_graph_display_tree(char const *name)
if
(
enabled
<
0
)
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
,
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment