MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dumpnode

Function dumpnode

freebsd/netgraph/ng_base.c:3271–3286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3269}
3270
3271void
3272dumpnode(node_p node, char *file, int line)
3273{
3274 printf("node: ID [%x]: type '%s', %d hooks, flags 0x%x, %d refs, %s:\n",
3275 _NG_NODE_ID(node), node->nd_type->name,
3276 node->nd_numhooks, node->nd_flags,
3277 node->nd_refs, node->nd_name);
3278 printf(" Last active @ %s, line %d\n",
3279 node->lastfile, node->lastline);
3280 if (line) {
3281 printf(" problem discovered at file %s, line %d\n", file, line);
3282#ifdef KDB
3283 kdb_backtrace();
3284#endif
3285 }
3286}
3287
3288void
3289dumpitem(item_p item, char *file, int line)

Callers 2

_chknodeFunction · 0.70
ng_dumpnodesFunction · 0.70

Calls 2

kdb_backtraceFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected