From 6bd0f8b98002151b941639c6acf13d204c29f3ce Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Tue, 16 Jan 2018 18:09:35 +0000 Subject: [PATCH] Encode exit status words in () to make it clear that it's not part of the sentence. 'Server validates OK' -> 'Server validates (OK)' --- src/tools/getdns_server_mon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tools/getdns_server_mon.c b/src/tools/getdns_server_mon.c index 53e06b7b..cc46851a 100644 --- a/src/tools/getdns_server_mon.c +++ b/src/tools/getdns_server_mon.c @@ -1284,19 +1284,19 @@ int main(int ac, char *av[]) exit_value_t xit = f->func(&test_info, av); switch(xit) { case EXIT_OK: - fputs(" OK", test_info.errout); + fputs(" (OK)", test_info.errout); break; case EXIT_WARNING: - fputs(" WARNING", test_info.errout); + fputs(" (WARNING)", test_info.errout); break; case EXIT_CRITICAL: - fputs(" CRITICAL", test_info.errout); + fputs(" (CRITICAL)", test_info.errout); break; case EXIT_UNKNOWN: - fputs(" UNKNOWN", test_info.errout); + fputs(" (UNKNOWN)", test_info.errout); break; case EXIT_USAGE: @@ -1304,7 +1304,7 @@ int main(int ac, char *av[]) break; default: - fputs(" ???", test_info.errout); + fputs(" (\?\?\?)", test_info.errout); break; } fputc('\n', test_info.errout);