summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h.in
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-09 03:39:35 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-09 03:39:35 (GMT)
commit731426203c88b76255492ad69138e6ecc7b0c7b5 (patch)
tree5e3c65a22a5a5d051ca72f5e17a73784e6032041 /plugins/utils.h.in
parentd3af657e468065dcbae73e6a7289f7090822bacd (diff)
downloadmonitoring-plugins-731426203c88b76255492ad69138e6ecc7b0c7b5.tar.gz
define and use usage3 where second part of message is a an int/char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@178 f882894a-f735-0410-b71e-b25c423dba1c
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 2b668f3..96bf9b2 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":\