[dhcp-agent-commits] dhcp-agent/src dhcp-client.c,1.27,1.28 dhcp-util.c,1.13,1.14
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-05-25 03:16:55
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv1600/src Modified Files: dhcp-client.c dhcp-util.c Log Message: added checking for verbosity level Index: dhcp-client.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-client.c,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** dhcp-client.c 25 May 2003 02:18:28 -0000 1.27 --- dhcp-client.c 25 May 2003 03:16:18 -0000 1.28 *************** *** 518,522 **** case 'l': ! if(set_verbosity_level(atoi(optarg))) { ERROR_MESSAGE("illegal verbosity level: %s", optarg); exit(1); --- 518,522 ---- case 'l': ! if(!is_signed_numeric(optarg) || set_verbosity_level(atoi(optarg))) { ERROR_MESSAGE("illegal verbosity level: %s", optarg); exit(1); Index: dhcp-util.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-util.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** dhcp-util.c 25 Mar 2003 03:03:58 -0000 1.13 --- dhcp-util.c 25 May 2003 03:16:18 -0000 1.14 *************** *** 33,37 **** static uint8_t interactive = 1; ! static int verbosity_level = DEBUG_VERBOSITY_LEVEL; /* * * * * * * * * * * --- 33,37 ---- static uint8_t interactive = 1; ! static int verbosity_level = NORMAL_VERBOSITY_LEVEL; /* * * * * * * * * * * *************** *** 150,154 **** va_list ap; ! if(get_verbosity_level() <= NORMAL_VERBOSITY_LEVEL) return; --- 150,154 ---- va_list ap; ! if(get_verbosity_level() < NORMAL_VERBOSITY_LEVEL) return; *************** *** 167,171 **** va_list ap; ! if(get_verbosity_level() <= WARNING_VERBOSITY_LEVEL) return; --- 167,171 ---- va_list ap; ! if(get_verbosity_level() < WARNING_VERBOSITY_LEVEL) return; |