summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-09-25 13:36:51 +0000
committerume <ume@FreeBSD.org>2003-09-25 13:36:51 +0000
commit888cc825c41917fc17ebf317df947b27c071b1c6 (patch)
treecc7a296943a79f2cc91d53eabd3e6e0ec6b076d9 /sys
parent4bfedd37f37b2fa27ccf2a5f6c359d263641f8f6 (diff)
downloadFreeBSD-src-888cc825c41917fc17ebf317df947b27c071b1c6.zip
FreeBSD-src-888cc825c41917fc17ebf317df947b27c071b1c6.tar.gz
panic() doesn't need `\n'.
Obtained from: KAME
Diffstat (limited to 'sys')
-rw-r--r--sys/netkey/key.c104
-rw-r--r--sys/netkey/key_debug.c32
-rw-r--r--sys/netkey/keysock.c8
3 files changed, 72 insertions, 72 deletions
diff --git a/sys/netkey/key.c b/sys/netkey/key.c
index fdaa993..f325ead 100644
--- a/sys/netkey/key.c
+++ b/sys/netkey/key.c
@@ -514,7 +514,7 @@ key_allocsp(spidx, dir)
/* sanity check */
if (spidx == NULL)
- panic("key_allocsp: NULL pointer is passed.\n");
+ panic("key_allocsp: NULL pointer is passed.");
/* check direction */
switch (dir) {
@@ -522,7 +522,7 @@ key_allocsp(spidx, dir)
case IPSEC_DIR_OUTBOUND:
break;
default:
- panic("key_allocsp: Invalid direction is passed.\n");
+ panic("key_allocsp: Invalid direction is passed.");
}
/* get a SP entry */
@@ -650,7 +650,7 @@ key_checkrequest(isr, saidx)
/* sanity check */
if (isr == NULL || saidx == NULL)
- panic("key_checkrequest: NULL pointer is passed.\n");
+ panic("key_checkrequest: NULL pointer is passed.");
/* check mode */
switch (saidx->mode) {
@@ -659,7 +659,7 @@ key_checkrequest(isr, saidx)
break;
case IPSEC_MODE_ANY:
default:
- panic("key_checkrequest: Invalid policy defined.\n");
+ panic("key_checkrequest: Invalid policy defined.");
}
/* get current level */
@@ -672,7 +672,7 @@ key_checkrequest(isr, saidx)
*/
if (isr->sav != NULL) {
if (isr->sav->sah == NULL)
- panic("key_checkrequest: sah is null.\n");
+ panic("key_checkrequest: sah is null.");
if (isr->sav == (struct secasvar *)LIST_FIRST(
&isr->sav->sah->savtree[SADB_SASTATE_DEAD])) {
KEYDEBUG(KEYDEBUG_IPSEC_STAMP,
@@ -811,7 +811,7 @@ key_do_allocsa_policy(sah, state)
/* sanity check 2 */
if (candidate->lft_c == NULL || sav->lft_c == NULL)
panic("key_do_allocsa_policy: "
- "lifetime_current is NULL.\n");
+ "lifetime_current is NULL.");
/* What the best method is to compare ? */
if (key_preferred_oldsa) {
@@ -934,7 +934,7 @@ key_allocsa(family, src, dst, proto, spi)
/* sanity check */
if (src == NULL || dst == NULL)
- panic("key_allocsa: NULL pointer is passed.\n");
+ panic("key_allocsa: NULL pointer is passed.");
/*
* when both systems employ similar strategy to use a SA.
@@ -1075,7 +1075,7 @@ key_freesp(sp)
{
/* sanity check */
if (sp == NULL)
- panic("key_freesp: NULL pointer is passed.\n");
+ panic("key_freesp: NULL pointer is passed.");
sp->refcnt--;
KEYDEBUG(KEYDEBUG_IPSEC_STAMP,
@@ -1098,7 +1098,7 @@ key_freeso(so)
{
/* sanity check */
if (so == NULL)
- panic("key_freeso: NULL pointer is passed.\n");
+ panic("key_freeso: NULL pointer is passed.");
switch (so->so_proto->pr_domain->dom_family) {
#ifdef INET
@@ -1152,7 +1152,7 @@ key_freesp_so(sp)
{
/* sanity check */
if (sp == NULL || *sp == NULL)
- panic("key_freesp_so: sp == NULL\n");
+ panic("key_freesp_so: sp == NULL");
switch ((*sp)->policy) {
case IPSEC_POLICY_IPSEC:
@@ -1182,7 +1182,7 @@ key_freesav(sav)
{
/* sanity check */
if (sav == NULL)
- panic("key_freesav: NULL pointer is passed.\n");
+ panic("key_freesav: NULL pointer is passed.");
sav->refcnt--;
KEYDEBUG(KEYDEBUG_IPSEC_STAMP,
@@ -1207,7 +1207,7 @@ key_delsp(sp)
/* sanity check */
if (sp == NULL)
- panic("key_delsp: NULL pointer is passed.\n");
+ panic("key_delsp: NULL pointer is passed.");
sp->state = IPSEC_SPSTATE_DEAD;
@@ -1257,7 +1257,7 @@ key_getsp(spidx)
/* sanity check */
if (spidx == NULL)
- panic("key_getsp: NULL pointer is passed.\n");
+ panic("key_getsp: NULL pointer is passed.");
LIST_FOREACH(sp, &sptree[spidx->dir], chain) {
if (sp->state == IPSEC_SPSTATE_DEAD)
@@ -1333,9 +1333,9 @@ key_msg2sp(xpl0, len, error)
/* sanity check */
if (xpl0 == NULL)
- panic("key_msg2sp: NULL pointer was passed.\n");
+ panic("key_msg2sp: NULL pointer was passed.");
if (len < sizeof(*xpl0))
- panic("key_msg2sp: invalid length.\n");
+ panic("key_msg2sp: invalid length.");
if (len != PFKEY_EXTLEN(xpl0)) {
ipseclog((LOG_DEBUG, "key_msg2sp: Invalid msg length.\n"));
*error = EINVAL;
@@ -1570,7 +1570,7 @@ key_sp2msg(sp)
/* sanity check. */
if (sp == NULL)
- panic("key_sp2msg: NULL pointer was passed.\n");
+ panic("key_sp2msg: NULL pointer was passed.");
tlen = key_getspreqmsglen(sp);
@@ -1740,7 +1740,7 @@ key_spdadd(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_spdadd: NULL pointer is passed.\n");
+ panic("key_spdadd: NULL pointer is passed.");
if (mhp->ext[SADB_EXT_ADDRESS_SRC] == NULL ||
mhp->ext[SADB_EXT_ADDRESS_DST] == NULL ||
@@ -1996,7 +1996,7 @@ key_spddelete(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_spddelete: NULL pointer is passed.\n");
+ panic("key_spddelete: NULL pointer is passed.");
if (mhp->ext[SADB_EXT_ADDRESS_SRC] == NULL ||
mhp->ext[SADB_EXT_ADDRESS_DST] == NULL ||
@@ -2089,7 +2089,7 @@ key_spddelete2(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_spddelete2: NULL pointer is passed.\n");
+ panic("key_spddelete2: NULL pointer is passed.");
if (mhp->ext[SADB_X_EXT_POLICY] == NULL ||
mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
@@ -2186,7 +2186,7 @@ key_spdget(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_spdget: NULL pointer is passed.\n");
+ panic("key_spdget: NULL pointer is passed.");
if (mhp->ext[SADB_X_EXT_POLICY] == NULL ||
mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
@@ -2235,11 +2235,11 @@ key_spdacquire(sp)
/* sanity check */
if (sp == NULL)
- panic("key_spdacquire: NULL pointer is passed.\n");
+ panic("key_spdacquire: NULL pointer is passed.");
if (sp->req != NULL)
- panic("key_spdacquire: called but there is request.\n");
+ panic("key_spdacquire: called but there is request.");
if (sp->policy != IPSEC_POLICY_IPSEC)
- panic("key_spdacquire: policy mismathed. IPsec is expected.\n");
+ panic("key_spdacquire: policy mismathed. IPsec is expected.");
/* Get an entry to check whether sent message or not. */
if ((newspacq = key_getspacq(&sp->spidx)) != NULL) {
@@ -2307,7 +2307,7 @@ key_spdflush(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_spdflush: NULL pointer is passed.\n");
+ panic("key_spdflush: NULL pointer is passed.");
if (m->m_len != PFKEY_ALIGN8(sizeof(struct sadb_msg)))
return key_senderror(so, m, EINVAL);
@@ -2358,7 +2358,7 @@ key_spddump(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_spddump: NULL pointer is passed.\n");
+ panic("key_spddump: NULL pointer is passed.");
/* search SPD entry and get buffer size. */
cnt = 0;
@@ -2497,7 +2497,7 @@ key_spdexpire(sp)
/* sanity check */
if (sp == NULL)
- panic("key_spdexpire: NULL pointer is passed.\n");
+ panic("key_spdexpire: NULL pointer is passed.");
/* set msg header */
m = key_setsadbmsg(SADB_X_SPDEXPIRE, 0, 0, 0, 0, 0);
@@ -2604,7 +2604,7 @@ key_newsah(saidx)
/* sanity check */
if (saidx == NULL)
- panic("key_newsaidx: NULL pointer is passed.\n");
+ panic("key_newsaidx: NULL pointer is passed.");
newsah = keydb_newsecashead();
if (newsah == NULL)
@@ -2633,7 +2633,7 @@ key_delsah(sah)
/* sanity check */
if (sah == NULL)
- panic("key_delsah: NULL pointer is passed.\n");
+ panic("key_delsah: NULL pointer is passed.");
s = splnet(); /*called from softclock()*/
@@ -2711,7 +2711,7 @@ key_newsav(m, mhp, sah, errp)
/* sanity check */
if (m == NULL || mhp == NULL || mhp->msg == NULL || sah == NULL)
- panic("key_newsa: NULL pointer is passed.\n");
+ panic("key_newsa: NULL pointer is passed.");
KMALLOC(newsav, struct secasvar *, sizeof(struct secasvar));
if (newsav == NULL) {
@@ -2790,7 +2790,7 @@ key_delsav(sav)
{
/* sanity check */
if (sav == NULL)
- panic("key_delsav: NULL pointer is passed.\n");
+ panic("key_delsav: NULL pointer is passed.");
if (sav->refcnt > 0)
return; /* can't free */
@@ -2955,7 +2955,7 @@ key_setsaval(sav, m, mhp)
/* sanity check */
if (m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_setsaval: NULL pointer is passed.\n");
+ panic("key_setsaval: NULL pointer is passed.");
/* initialization */
sav->replay = NULL;
@@ -3805,7 +3805,7 @@ key_ismyaddr(sa)
/* sanity check */
if (sa == NULL)
- panic("key_ismyaddr: NULL pointer is passed.\n");
+ panic("key_ismyaddr: NULL pointer is passed.");
switch (sa->sa_family) {
#ifdef INET
@@ -4566,7 +4566,7 @@ key_getspi(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_getspi: NULL pointer is passed.\n");
+ panic("key_getspi: NULL pointer is passed.");
if (mhp->ext[SADB_EXT_ADDRESS_SRC] == NULL ||
mhp->ext[SADB_EXT_ADDRESS_DST] == NULL) {
@@ -4843,7 +4843,7 @@ key_update(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_update: NULL pointer is passed.\n");
+ panic("key_update: NULL pointer is passed.");
/* map satype to proto */
if ((proto = key_satype2proto(mhp->msg->sadb_msg_satype)) == 0) {
@@ -5038,7 +5038,7 @@ key_add(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_add: NULL pointer is passed.\n");
+ panic("key_add: NULL pointer is passed.");
/* map satype to proto */
if ((proto = key_satype2proto(mhp->msg->sadb_msg_satype)) == 0) {
@@ -5147,7 +5147,7 @@ key_setident(sah, m, mhp)
/* sanity check */
if (sah == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_setident: NULL pointer is passed.\n");
+ panic("key_setident: NULL pointer is passed.");
/* don't make buffer if not there */
if (mhp->ext[SADB_EXT_IDENTITY_SRC] == NULL &&
@@ -5217,7 +5217,7 @@ key_getmsgbuf_x1(m, mhp)
/* sanity check */
if (m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_getmsgbuf_x1: NULL pointer is passed.\n");
+ panic("key_getmsgbuf_x1: NULL pointer is passed.");
/* create new sadb_msg to reply. */
n = key_gather_mbuf(m, mhp, 1, 9, SADB_EXT_RESERVED,
@@ -5269,7 +5269,7 @@ key_delete(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_delete: NULL pointer is passed.\n");
+ panic("key_delete: NULL pointer is passed.");
/* map satype to proto */
if ((proto = key_satype2proto(mhp->msg->sadb_msg_satype)) == 0) {
@@ -5457,7 +5457,7 @@ key_get(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_get: NULL pointer is passed.\n");
+ panic("key_get: NULL pointer is passed.");
/* map satype to proto */
if ((proto = key_satype2proto(mhp->msg->sadb_msg_satype)) == 0) {
@@ -5810,9 +5810,9 @@ key_acquire(saidx, sp)
/* sanity check */
if (saidx == NULL)
- panic("key_acquire: NULL pointer is passed.\n");
+ panic("key_acquire: NULL pointer is passed.");
if ((satype = key_proto2satype(saidx->proto)) == 0)
- panic("key_acquire: invalid proto is passed.\n");
+ panic("key_acquire: invalid proto is passed.");
#ifndef IPSEC_NONBLOCK_ACQUIRE
/*
@@ -6096,7 +6096,7 @@ key_acquire2(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_acquire2: NULL pointer is passed.\n");
+ panic("key_acquire2: NULL pointer is passed.");
/*
* Error message from KMd.
@@ -6210,7 +6210,7 @@ key_register(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_register: NULL pointer is passed.\n");
+ panic("key_register: NULL pointer is passed.");
/* check for invalid register message */
if (mhp->msg->sadb_msg_satype >= sizeof(regtree)/sizeof(regtree[0]))
@@ -6373,7 +6373,7 @@ key_freereg(so)
/* sanity check */
if (so == NULL)
- panic("key_freereg: NULL pointer is passed.\n");
+ panic("key_freereg: NULL pointer is passed.");
/*
* check whether existing or not.
@@ -6420,11 +6420,11 @@ key_expire(sav)
/* sanity check */
if (sav == NULL)
- panic("key_expire: NULL pointer is passed.\n");
+ panic("key_expire: NULL pointer is passed.");
if (sav->sah == NULL)
- panic("key_expire: Why was SA index in SA NULL.\n");
+ panic("key_expire: Why was SA index in SA NULL.");
if ((satype = key_proto2satype(sav->sah->saidx.proto)) == 0)
- panic("key_expire: invalid proto is passed.\n");
+ panic("key_expire: invalid proto is passed.");
/* set msg header */
m = key_setsadbmsg(SADB_EXPIRE, 0, satype, sav->seq, 0, sav->refcnt);
@@ -6550,7 +6550,7 @@ key_flush(so, m, mhp)
/* sanity check */
if (so == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_flush: NULL pointer is passed.\n");
+ panic("key_flush: NULL pointer is passed.");
/* map satype to proto */
if ((proto = key_satype2proto(mhp->msg->sadb_msg_satype)) == 0) {
@@ -6633,7 +6633,7 @@ key_dump(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_dump: NULL pointer is passed.\n");
+ panic("key_dump: NULL pointer is passed.");
/* map satype to proto */
if ((proto = key_satype2proto(mhp->msg->sadb_msg_satype)) == 0) {
@@ -6708,7 +6708,7 @@ key_promisc(so, m, mhp)
/* sanity check */
if (so == NULL || m == NULL || mhp == NULL || mhp->msg == NULL)
- panic("key_promisc: NULL pointer is passed.\n");
+ panic("key_promisc: NULL pointer is passed.");
olen = PFKEY_UNUNIT64(mhp->msg->sadb_msg_len);
@@ -6799,7 +6799,7 @@ key_parse(m, so)
/* sanity check */
if (m == NULL || so == NULL)
- panic("key_parse: NULL pointer is passed.\n");
+ panic("key_parse: NULL pointer is passed.");
#if 0 /*kdebug_sadb assumes msg in linear buffer*/
KEYDEBUG(KEYDEBUG_KEY_DUMP,
@@ -7073,7 +7073,7 @@ key_align(m, mhp)
/* sanity check */
if (m == NULL || mhp == NULL)
- panic("key_align: NULL pointer is passed.\n");
+ panic("key_align: NULL pointer is passed.");
if (m->m_len < sizeof(struct sadb_msg))
panic("invalid mbuf passed to key_align");
diff --git a/sys/netkey/key_debug.c b/sys/netkey/key_debug.c
index 5c6b78e..1de1146 100644
--- a/sys/netkey/key_debug.c
+++ b/sys/netkey/key_debug.c
@@ -90,7 +90,7 @@ kdebug_sadb(base)
/* sanity check */
if (base == NULL)
- panic("kdebug_sadb: NULL pointer was passed.\n");
+ panic("kdebug_sadb: NULL pointer was passed.");
printf("sadb_msg{ version=%u type=%u errno=%u satype=%u\n",
base->sadb_msg_version, base->sadb_msg_type,
@@ -179,7 +179,7 @@ kdebug_sadb_prop(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_prop: NULL pointer was passed.\n");
+ panic("kdebug_sadb_prop: NULL pointer was passed.");
len = (PFKEY_UNUNIT64(prop->sadb_prop_len) - sizeof(*prop))
/ sizeof(*comb);
@@ -228,7 +228,7 @@ kdebug_sadb_identity(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_identity: NULL pointer was passed.\n");
+ panic("kdebug_sadb_identity: NULL pointer was passed.");
len = PFKEY_UNUNIT64(id->sadb_ident_len) - sizeof(*id);
printf("sadb_ident_%s{",
@@ -272,7 +272,7 @@ kdebug_sadb_supported(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_supported: NULL pointer was passed.\n");
+ panic("kdebug_sadb_supported: NULL pointer was passed.");
len = (PFKEY_UNUNIT64(sup->sadb_supported_len) - sizeof(*sup))
/ sizeof(*alg);
@@ -317,7 +317,7 @@ kdebug_sadb_sa(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_sa: NULL pointer was passed.\n");
+ panic("kdebug_sadb_sa: NULL pointer was passed.");
printf("sadb_sa{ spi=%u replay=%u state=%u\n",
(u_int32_t)ntohl(sa->sadb_sa_spi), sa->sadb_sa_replay,
@@ -336,7 +336,7 @@ kdebug_sadb_address(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_address: NULL pointer was passed.\n");
+ panic("kdebug_sadb_address: NULL pointer was passed.");
printf("sadb_address{ proto=%u prefixlen=%u reserved=0x%02x%02x }\n",
addr->sadb_address_proto, addr->sadb_address_prefixlen,
@@ -356,7 +356,7 @@ kdebug_sadb_key(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_key: NULL pointer was passed.\n");
+ panic("kdebug_sadb_key: NULL pointer was passed.");
printf("sadb_key{ bits=%u reserved=%u\n",
key->sadb_key_bits, key->sadb_key_reserved);
@@ -384,7 +384,7 @@ kdebug_sadb_x_sa2(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_x_sa2: NULL pointer was passed.\n");
+ panic("kdebug_sadb_x_sa2: NULL pointer was passed.");
printf("sadb_x_sa2{ mode=%u reqid=%u\n",
sa2->sadb_x_sa2_mode, sa2->sadb_x_sa2_reqid);
@@ -404,7 +404,7 @@ kdebug_sadb_x_policy(ext)
/* sanity check */
if (ext == NULL)
- panic("kdebug_sadb_x_policy: NULL pointer was passed.\n");
+ panic("kdebug_sadb_x_policy: NULL pointer was passed.");
printf("sadb_x_policy{ type=%u dir=%u id=%x }\n",
xpl->sadb_x_policy_type, xpl->sadb_x_policy_dir,
@@ -453,7 +453,7 @@ kdebug_sadb_x_policy(ext)
}
if (tlen != 0)
- panic("kdebug_sadb_x_policy: wrong policy struct.\n");
+ panic("kdebug_sadb_x_policy: wrong policy struct.");
}
return;
@@ -467,7 +467,7 @@ kdebug_secpolicy(sp)
{
/* sanity check */
if (sp == NULL)
- panic("kdebug_secpolicy: NULL pointer was passed.\n");
+ panic("kdebug_secpolicy: NULL pointer was passed.");
printf("secpolicy{ refcnt=%u state=%u policy=%u\n",
sp->refcnt, sp->state, sp->policy);
@@ -516,7 +516,7 @@ kdebug_secpolicyindex(spidx)
{
/* sanity check */
if (spidx == NULL)
- panic("kdebug_secpolicyindex: NULL pointer was passed.\n");
+ panic("kdebug_secpolicyindex: NULL pointer was passed.");
printf("secpolicyindex{ dir=%u prefs=%u prefd=%u ul_proto=%u\n",
spidx->dir, spidx->prefs, spidx->prefd, spidx->ul_proto);
@@ -537,7 +537,7 @@ kdebug_secasindex(saidx)
{
/* sanity check */
if (saidx == NULL)
- panic("kdebug_secpolicyindex: NULL pointer was passed.\n");
+ panic("kdebug_secpolicyindex: NULL pointer was passed.");
printf("secasindex{ mode=%u proto=%u\n",
saidx->mode, saidx->proto);
@@ -558,7 +558,7 @@ kdebug_secasv(sav)
{
/* sanity check */
if (sav == NULL)
- panic("kdebug_secasv: NULL pointer was passed.\n");
+ panic("kdebug_secasv: NULL pointer was passed.");
printf("secas{");
kdebug_secasindex(&sav->sah->saidx);
@@ -602,7 +602,7 @@ kdebug_secreplay(rpl)
/* sanity check */
if (rpl == NULL)
- panic("kdebug_secreplay: NULL pointer was passed.\n");
+ panic("kdebug_secreplay: NULL pointer was passed.");
printf(" secreplay{ count=%u wsize=%u seq=%u lastseq=%u",
rpl->count, rpl->wsize, rpl->seq, rpl->lastseq);
@@ -687,7 +687,7 @@ kdebug_sockaddr(addr)
/* sanity check */
if (addr == NULL)
- panic("kdebug_sockaddr: NULL pointer was passed.\n");
+ panic("kdebug_sockaddr: NULL pointer was passed.");
/* NOTE: We deal with port number as host byte order. */
printf("sockaddr{ len=%u family=%u", addr->sa_len, addr->sa_family);
diff --git a/sys/netkey/keysock.c b/sys/netkey/keysock.c
index 8c95aae..923cce7 100644
--- a/sys/netkey/keysock.c
+++ b/sys/netkey/keysock.c
@@ -92,7 +92,7 @@ key_output(m, va_alist)
va_end(ap);
if (m == 0)
- panic("key_output: NULL pointer was passed.\n");
+ panic("key_output: NULL pointer was passed.");
pfkeystat.out_total++;
pfkeystat.out_bytes += m->m_pkthdr.len;
@@ -193,7 +193,7 @@ key_sendup(so, msg, len, target)
/* sanity check */
if (so == 0 || msg == 0)
- panic("key_sendup: NULL pointer was passed.\n");
+ panic("key_sendup: NULL pointer was passed.");
KEYDEBUG(KEYDEBUG_KEY_DUMP,
printf("key_sendup: \n");
@@ -279,9 +279,9 @@ key_sendup_mbuf(so, m, target)
int error = 0;
if (m == NULL)
- panic("key_sendup_mbuf: NULL pointer was passed.\n");
+ panic("key_sendup_mbuf: NULL pointer was passed.");
if (so == NULL && target == KEY_SENDUP_ONE)
- panic("key_sendup_mbuf: NULL pointer was passed.\n");
+ panic("key_sendup_mbuf: NULL pointer was passed.");
pfkeystat.in_total++;
pfkeystat.in_bytes += m->m_pkthdr.len;
OpenPOWER on IntegriCloud