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

Function dumphook

freebsd/netgraph/ng_base.c:3256–3269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3254
3255#ifdef NETGRAPH_DEBUG
3256void
3257dumphook (hook_p hook, char *file, int line)
3258{
3259 printf("hook: name %s, %d refs, Last touched:\n",
3260 _NG_HOOK_NAME(hook), hook->hk_refs);
3261 printf(" Last active @ %s, line %d\n",
3262 hook->lastfile, hook->lastline);
3263 if (line) {
3264 printf(" problem discovered at file %s, line %d\n", file, line);
3265#ifdef KDB
3266 kdb_backtrace();
3267#endif
3268 }
3269}
3270
3271void
3272dumpnode(node_p node, char *file, int line)

Callers 2

_chkhookFunction · 0.70
ng_dumphooksFunction · 0.70

Calls 2

kdb_backtraceFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected