summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-01-13 17:41:56 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-01-13 17:41:56 +0000
commit894f2d9923360755948929c8f81913abae81f3e2 (patch)
tree87b9a445697897821318ef8845c2e50233f28944 /sys/ufs/ffs
parent894efaa449e15ede6b3d5b6bd303c37d56c653cb (diff)
prettify some panic strings,
s/panic("%s: foo", "func")/panic("func: foo") ok toby@
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_vnops.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 944f98212b2..6d9035e88fa 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vnops.c,v 1.39 2006/10/29 00:53:37 thib Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.40 2007/01/13 17:41:55 thib Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
@@ -196,15 +196,15 @@ ffs_read(void *v)
#ifdef DIAGNOSTIC
if (uio->uio_rw != UIO_READ)
- panic("%s: mode", "ffs_read");
+ panic("ffs_read: mode");
if (vp->v_type == VLNK) {
if ((int)DIP(ip, size) < vp->v_mount->mnt_maxsymlinklen ||
(vp->v_mount->mnt_maxsymlinklen == 0 &&
DIP(ip, blocks) == 0))
- panic("%s: short symlink", "ffs_read");
+ panic("ffs_read: short symlink");
} else if (vp->v_type != VREG && vp->v_type != VDIR)
- panic("%s: type %d", "ffs_read", vp->v_type);
+ panic("ffs_read: type %d", vp->v_type);
#endif
fs = ip->i_fs;
if ((u_int64_t)uio->uio_offset > fs->fs_maxfilesize)
@@ -297,7 +297,7 @@ ffs_write(void *v)
#ifdef DIAGNOSTIC
if (uio->uio_rw != UIO_WRITE)
- panic("%s: mode", "ffs_write");
+ panic("ffs_write: mode");
#endif
/*
@@ -318,10 +318,10 @@ ffs_write(void *v)
break;
case VDIR:
if ((ioflag & IO_SYNC) == 0)
- panic("%s: nonsync dir write", "ffs_write");
+ panic("ffs_write: nonsync dir write");
break;
default:
- panic("%s: type", "ffs_write");
+ panic("ffs_write: type");
}
fs = ip->i_fs;