debug.c (160002) | debug.c (160423) |
---|---|
1 2/* 3 * debug.c 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 20 unchanged lines hidden (view full) --- 29 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 30 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * | 1 2/* 3 * debug.c 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 20 unchanged lines hidden (view full) --- 29 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 30 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * |
37 * $FreeBSD: head/usr.sbin/ngctl/debug.c 160002 2006-06-28 10:38:38Z glebius $ | 37 * $FreeBSD: head/usr.sbin/ngctl/debug.c 160423 2006-07-17 08:35:47Z stefanf $ |
38 */ 39 40#include <netgraph.h> 41#include <stdio.h> 42#include <stdlib.h> 43#include <string.h> 44 45#include "ngctl.h" 46 47static int DebugCmd(int ac, char **av); 48 49const struct ngcmd debug_cmd = { 50 DebugCmd, 51 "debug [level]", 52 "Get/set debugging verbosity level", 53 "Without any argument, this command displays the current" 54 " debugging verbosity level. If the argument is ``+'' or ``-''" 55 " the debug level is incremented or decremented; otherwise," 56 " it must be an absolute numerical level.", | 38 */ 39 40#include <netgraph.h> 41#include <stdio.h> 42#include <stdlib.h> 43#include <string.h> 44 45#include "ngctl.h" 46 47static int DebugCmd(int ac, char **av); 48 49const struct ngcmd debug_cmd = { 50 DebugCmd, 51 "debug [level]", 52 "Get/set debugging verbosity level", 53 "Without any argument, this command displays the current" 54 " debugging verbosity level. If the argument is ``+'' or ``-''" 55 " the debug level is incremented or decremented; otherwise," 56 " it must be an absolute numerical level.", |
57 {} | 57 { NULL } |
58}; 59 60static int 61DebugCmd(int ac, char **av) 62{ 63 int level; 64 65 /* Get arguments */ --- 19 unchanged lines hidden --- | 58}; 59 60static int 61DebugCmd(int ac, char **av) 62{ 63 int level; 64 65 /* Get arguments */ --- 19 unchanged lines hidden --- |