diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 21:45:58 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 21:45:58 +0000 |
commit | fdfd8c5336e229e2487b1c498b0934230ff167b6 (patch) | |
tree | 4591cc1723fc3fc587f4893226a4cb7a6b8420e2 /sys | |
parent | 7fd91e098499950141b8f1d34cbac8b2c275ee02 (diff) | |
download | FreeBSD-src-fdfd8c5336e229e2487b1c498b0934230ff167b6.zip FreeBSD-src-fdfd8c5336e229e2487b1c498b0934230ff167b6.tar.gz |
Update for the KDB framework:
o Call kdb_enter() instead of Debugger().
o Change comments accordingly.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/ng_base.c | 7 | ||||
-rw-r--r-- | sys/netgraph/ng_socket.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index c12eae1..c18a577 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -47,6 +47,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/errno.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/limits.h> #include <sys/malloc.h> @@ -322,7 +323,7 @@ ng_alloc_node(void) #define NG_FREE_ITEM_REAL(item) do { FREE((item), M_NETGRAPH_ITEM); } while (0) -/* Set this to Debugger("X") to catch all errors as they occur */ +/* Set this to kdb_enter("X") to catch all errors as they occur */ #ifndef TRAP_ERROR #define TRAP_ERROR() #endif @@ -3366,12 +3367,12 @@ ng_setisr(node_p node) do { \ if (NGI_NODE(item) ) { \ printf("item already has node"); \ - Debugger("has node"); \ + kdb_enter("has node"); \ NGI_CLR_NODE(item); \ } \ if (NGI_HOOK(item) ) { \ printf("item already has hook"); \ - Debugger("has hook"); \ + kdb_enter("has hook"); \ NGI_CLR_HOOK(item); \ } \ } while (0) diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index 4c3321f..9a140b6 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -1,4 +1,3 @@ - /* * ng_socket.c * @@ -51,6 +50,7 @@ #include <sys/param.h> #include <sys/domain.h> #include <sys/errno.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/lock.h> #include <sys/malloc.h> @@ -156,7 +156,7 @@ static LIST_HEAD(, ngpcb) ngsocklist; #define sotongpcb(so) ((struct ngpcb *)(so)->so_pcb) -/* If getting unexplained errors returned, set this to "Debugger("X"); */ +/* If getting unexplained errors returned, set this to "kdb_enter("X"); */ #ifndef TRAP_ERROR #define TRAP_ERROR #endif |