diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-30 14:41:53 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-30 14:41:53 +0000 |
| commit | 6d953b22ae50261812b27ba84ecd6dc33b2007de (patch) | |
| tree | 82d61de117f1e8ec02522c3d2eb40bd78877c543 /src/libs6f/s6f_report_state_change.c | |
| parent | 8a6eaed305dbe4ec6a87fe37000f7461bf563937 (diff) | |
| download | s6-frontend-6d953b22ae50261812b27ba84ecd6dc33b2007de.tar.gz | |
Adapt to new gol
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6f/s6f_report_state_change.c')
| -rw-r--r-- | src/libs6f/s6f_report_state_change.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs6f/s6f_report_state_change.c b/src/libs6f/s6f_report_state_change.c index 70d2cd1..9cb718b 100644 --- a/src/libs6f/s6f_report_state_change.c +++ b/src/libs6f/s6f_report_state_change.c @@ -10,7 +10,7 @@ #include "s6f.h" -void s6f_report_state_change (uint32_t n, unsigned char const *oldstate, unsigned char const *newstate, char const *compiled) +void s6f_report_state_change (uint32_t n, unsigned char const *oldstate, unsigned char const *newstate, char const *compiled, int h) { if (!memcmp(oldstate, newstate, n)) { @@ -45,7 +45,9 @@ void s6f_report_state_change (uint32_t n, unsigned char const *oldstate, unsigne if (!r) strerr_dief3x(4, "invalid service database in ", compiled, "/db") ; if (buffer_puts(buffer_1, PROG) < 0 - || buffer_puts(buffer_1, ": info: the following atomic services have changed state:\n") < 0) + || buffer_puts(buffer_1, ": info: the following atomic services have been brought ") < 0 + || buffer_puts(buffer_1, h ? "up" : "down") < 0 + || buffer_puts(buffer_1, ":\n") < 0) strerr_diefu1sys(111, "write to stdout") ; for (uint32_t i = 0 ; i < n ; i++) { |
