diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-08-07 03:50:03 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-08-07 03:50:03 +0000 |
commit | eb95cc9da073c2c7f556ff2c8c2a63c319881bfb (patch) | |
tree | d3984d88de35cd21a0754c75a71b124b3e0c79f2 /sys/nfs | |
parent | 327b342b96e585a8d91a4811578b95328b8aead2 (diff) |
No "\n" needed at the end of panic() strings.
Bogus chunks pointed out by matthew@ and miod@. No cookies for
marco@ and jasper@.
ok deraadt@ miod@ matthew@ jasper@ macro@
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_bio.c | 6 | ||||
-rw-r--r-- | sys/nfs/nfs_node.c | 6 | ||||
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index accd806410e..2a48e32ed33 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.71 2010/04/12 16:37:38 beck Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.72 2010/08/07 03:50:02 krw Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -219,7 +219,7 @@ again: on = 0; break; default: - panic("nfsbioread: type %x unexpected\n", vp->v_type); + panic("nfsbioread: type %x unexpected", vp->v_type); break; } @@ -610,7 +610,7 @@ nfs_doio(struct buf *bp, struct proc *p) error = nfs_readlinkrpc(vp, uiop, curproc->p_ucred); break; default: - panic("nfs_doio: type %x unexpected\n", vp->v_type); + panic("nfs_doio: type %x unexpected", vp->v_type); break; }; if (error) { diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index 44efb9ed504..fb6501c31a3 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_node.c,v 1.51 2009/12/17 16:30:47 beck Exp $ */ +/* $OpenBSD: nfs_node.c,v 1.52 2010/08/07 03:50:02 krw Exp $ */ /* $NetBSD: nfs_node.c,v 1.16 1996/02/18 11:53:42 fvdl Exp $ */ /* @@ -180,7 +180,7 @@ nfs_inactive(void *v) return(0); #ifdef DIAGNOSTIC if (ap->a_vp->v_data == NULL) - panic("NULL v_data (no nfsnode set up?) in vnode %p\n", + panic("NULL v_data (no nfsnode set up?) in vnode %p", ap->a_vp); #endif np = VTONFS(ap->a_vp); @@ -228,7 +228,7 @@ nfs_reclaim(void *v) return(0); #ifdef DIAGNOSTIC if (ap->a_vp->v_data == NULL) - panic("NULL v_data (no nfsnode set up?) in vnode %p\n", + panic("NULL v_data (no nfsnode set up?) in vnode %p", ap->a_vp); #endif nmp = VFSTONFS(vp->v_mount); diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index df6deb79d04..0e583b7ba19 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.90 2010/07/31 20:48:32 blambert Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.91 2010/08/07 03:50:02 krw Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -398,7 +398,7 @@ loop: } if (siz <= 0 || siz > NFS_MAXPACKET) - panic("bad nfs svc reply, siz = %i\n", siz); + panic("bad nfs svc reply, siz = %i", siz); m = mreq; m->m_pkthdr.len = siz; |