diff options
Diffstat (limited to 'plugins/utils.h.in')
-rw-r--r-- | plugins/utils.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/utils.h.in b/plugins/utils.h.in index 2b668f3c..96bf9b2f 100644 --- a/plugins/utils.h.in +++ b/plugins/utils.h.in | |||
@@ -86,6 +86,12 @@ int max_state(int, int); | |||
86 | exit(STATE_UNKNOWN);\ | 86 | exit(STATE_UNKNOWN);\ |
87 | } | 87 | } |
88 | 88 | ||
89 | #define usage3(msg,arg) {\ | ||
90 | printf("%s: %s - %c\n",PROGNAME,msg,arg);\ | ||
91 | print_usage();\ | ||
92 | exit(STATE_UNKNOWN);\ | ||
93 | } | ||
94 | |||
89 | #define state_text(a) \ | 95 | #define state_text(a) \ |
90 | (a)==0?"OK":\ | 96 | (a)==0?"OK":\ |
91 | (a)==1?"WARNING":\ | 97 | (a)==1?"WARNING":\ |