aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.h.in')
-rw-r--r--plugins/utils.h.in6
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);
exit(STATE_UNKNOWN);\
}
+#define usage3(msg,arg) {\
+ printf("%s: %s - %c\n",PROGNAME,msg,arg);\
+ print_usage();\
+ exit(STATE_UNKNOWN);\
+}
+
#define state_text(a) \
(a)==0?"OK":\
(a)==1?"WARNING":\