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_rfc1490.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_rfc1490.c')
-rw-r--r-- | sys/netgraph/ng_rfc1490.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_rfc1490.c b/sys/netgraph/ng_rfc1490.c index 99f8641..fff7c28 100644 --- a/sys/netgraph/ng_rfc1490.c +++ b/sys/netgraph/ng_rfc1490.c @@ -440,7 +440,7 @@ switch_on_etype: etype = ntohs(*((const u_int16_t *)ptr)); mtod(m, u_char *)[7] = 0x07; NG_FWD_NEW_DATA(error, item, priv->downlink, m); } else - panic(__func__); + panic("%s", __func__); done: if (item) @@ -485,7 +485,7 @@ ng_rfc1490_disconnect(hook_p hook) else if (hook == priv->ethernet) priv->ethernet = NULL; else - panic(__func__); + panic("%s", __func__); return (0); } |