diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-10-13 17:21:21 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-10-13 17:21:21 +0000 |
commit | 3ad0c4bcd6dd0751a9582c46259e6d72f46fc62c (patch) | |
tree | e89453ccf2bd8c67d2a1245ee1e87ae358f553f8 /sys/netgraph/ng_async.c | |
parent | b4b86377af579d3da62db347352461e0092cf831 (diff) | |
download | FreeBSD-src-3ad0c4bcd6dd0751a9582c46259e6d72f46fc62c.zip FreeBSD-src-3ad0c4bcd6dd0751a9582c46259e6d72f46fc62c.tar.gz |
When calling panic(), always pass a format string.
Diffstat (limited to 'sys/netgraph/ng_async.c')
-rw-r--r-- | sys/netgraph/ng_async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_async.c b/sys/netgraph/ng_async.c index 77c96df..acbd76a 100644 --- a/sys/netgraph/ng_async.c +++ b/sys/netgraph/ng_async.c @@ -256,7 +256,7 @@ nga_rcvdata(hook_p hook, item_p item) return (nga_rcv_sync(sc, item)); if (hook == sc->async) return (nga_rcv_async(sc, item)); - panic(__func__); + panic("%s", __func__); } /* @@ -372,7 +372,7 @@ nga_disconnect(hook_p hook) else if (hook == sc->sync) hookp = &sc->sync; else - panic(__func__); + panic("%s", __func__); if (!*hookp) panic("%s 2", __func__); *hookp = NULL; |