From 731426203c88b76255492ad69138e6ecc7b0c7b5 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sat, 9 Nov 2002 03:39:35 +0000 Subject: 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 --- plugins/utils.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/utils.h.in') 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":\ -- cgit v1.2.3