diff options
author | glebius <glebius@FreeBSD.org> | 2011-10-27 09:43:25 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-10-27 09:43:25 +0000 |
commit | 73f8c1969fba5d84c113453e480f9b1d095a4a0a (patch) | |
tree | c5c983134cab938e28bb1bc07b6a85364007286f /sys/netgraph/ng_base.c | |
parent | bb1ea2838eca06c71027900f18b2b4b53e7bc9f8 (diff) | |
download | FreeBSD-src-73f8c1969fba5d84c113453e480f9b1d095a4a0a.zip FreeBSD-src-73f8c1969fba5d84c113453e480f9b1d095a4a0a.tar.gz |
- If KDB & NETGRAPH_DEBUG are on, print traces on discovered failed
invariants.
- Reduce tautology in NETGRAPH_DEBUG output.
Diffstat (limited to 'sys/netgraph/ng_base.c')
-rw-r--r-- | sys/netgraph/ng_base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 0918193..3c84dbf 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -3167,6 +3167,9 @@ dumphook (hook_p hook, char *file, int line) hook->lastfile, hook->lastline); if (line) { printf(" problem discovered at file %s, line %d\n", file, line); +#ifdef KDB + kdb_backtrace(); +#endif } } @@ -3181,6 +3184,9 @@ dumpnode(node_p node, char *file, int line) node->lastfile, node->lastline); if (line) { printf(" problem discovered at file %s, line %d\n", file, line); +#ifdef KDB + kdb_backtrace(); +#endif } } |