diff options
author | mpp <mpp@FreeBSD.org> | 1997-03-09 06:10:36 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-03-09 06:10:36 +0000 |
commit | 97b9102cae36958bdf3423aae790e3907dd8562e (patch) | |
tree | 2da28a3e0f1b010fab89a7770b722e69c4660030 /sys/ufs | |
parent | c98bb18e27af9f8a5fa8140c579fcfe675eb5954 (diff) | |
download | FreeBSD-src-97b9102cae36958bdf3423aae790e3907dd8562e.zip FreeBSD-src-97b9102cae36958bdf3423aae790e3907dd8562e.tar.gz |
Update a number of routines to reflect the actual name
of the routine that caused the panic.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_bmap.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 6 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 6 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 16 |
4 files changed, 16 insertions, 16 deletions
diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c index 10c0f21..227cbfe 100644 --- a/sys/ufs/ufs/ufs_bmap.c +++ b/sys/ufs/ufs/ufs_bmap.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95 - * $Id$ + * $Id: ufs_bmap.c,v 1.14 1997/02/22 09:47:44 peter Exp $ */ #include <sys/param.h> @@ -195,7 +195,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp, runb) if ((bp->b_flags & B_CACHE) == 0) { #ifdef DIAGNOSTIC if (!daddr) - panic("ufs_bmaparry: indirect block not in cache"); + panic("ufs_bmaparray: indirect block not in cache"); #endif bp->b_blkno = blkptrtodb(ump, daddr); bp->b_flags |= B_READ; diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index 6c82d5c..8681ee0 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_lookup.c 8.15 (Berkeley) 6/16/95 - * $Id$ + * $Id: ufs_lookup.c,v 1.12 1997/02/22 09:47:49 peter Exp $ */ #include <sys/param.h> @@ -604,7 +604,7 @@ ufs_dirbad(ip, offset, how) (void)printf("%s: bad dir ino %ld at offset %ld: %s\n", mp->mnt_stat.f_mntonname, ip->i_number, offset, how); if ((mp->mnt_stat.f_flags & MNT_RDONLY) == 0) - panic("bad dir"); + panic("ufs_dirbad: bad dir"); } /* @@ -673,7 +673,7 @@ ufs_direnter(ip, dvp, cnp) #ifdef DIAGNOSTIC if ((cnp->cn_flags & SAVENAME) == 0) - panic("direnter: missing name"); + panic("ufs_direnter: missing name"); #endif dp = VTOI(dvp); newdir.d_ino = ip->i_number; diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index 723b3c9..416df5b 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)ufs_quota.c 8.5 (Berkeley) 5/20/95 - * $Id$ + * $Id: ufs_quota.c,v 1.11 1997/02/22 09:47:50 peter Exp $ */ #include "opt_quota.h" /* not really necessary... */ @@ -359,7 +359,7 @@ chkdquot(ip) continue; if (ip->i_dquot[i] == NODQUOT) { vprint("chkdquot: missing dquot", ITOV(ip)); - panic("missing dquot"); + panic("chkdquot: missing dquot"); } } } @@ -767,7 +767,7 @@ dqget(vp, id, ump, type, dqp) return (EUSERS); } if (dq->dq_cnt || (dq->dq_flags & DQ_MOD)) - panic("free dquot isn't"); + panic("dqget: free dquot isn't"); TAILQ_REMOVE(&dqfreelist, dq, dq_freelist); LIST_REMOVE(dq, dq_hash); } diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 29327fa..f24e773 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95 - * $Id$ + * $Id: ufs_vnops.c,v 1.46 1997/02/22 09:47:53 peter Exp $ */ #include "opt_quota.h" @@ -577,7 +577,7 @@ ufs_chown(vp, uid, gid, cred, p) return (error); good: if (getinoquota(ip)) - panic("chown: lost quota"); + panic("ufs_chown: lost quota"); #endif /* QUOTA */ if (ouid != uid || ogid != gid) ip->i_flag |= IN_CHANGE; @@ -1061,7 +1061,7 @@ abortit: */ if (xp == NULL) { if (dp->i_dev != ip->i_dev) - panic("rename: EXDEV"); + panic("ufs_rename: EXDEV"); /* * Account for ".." in new directory. * When source and destination have the same @@ -1098,12 +1098,12 @@ abortit: vput(tdvp); } else { if (xp->i_dev != dp->i_dev || xp->i_dev != ip->i_dev) - panic("rename: EXDEV"); + panic("ufs_rename: EXDEV"); /* * Short circuit rename(foo, foo). */ if (xp->i_number == ip->i_number) - panic("rename: same file"); + panic("ufs_rename: same file"); /* * If the parent directory is "sticky", then the user must * own the parent directory, or the destination of the rename, @@ -1177,7 +1177,7 @@ abortit: xp->i_nlink--; if (doingdirectory) { if (--xp->i_nlink != 0) - panic("rename: linked directory"); + panic("ufs_rename: linked directory"); error = VOP_TRUNCATE(tvp, (off_t)0, IO_SYNC, tcnp->cn_cred, tcnp->cn_proc); } @@ -1205,7 +1205,7 @@ abortit: * From name has disappeared. */ if (doingdirectory) - panic("rename: lost dir entry"); + panic("ufs_rename: lost dir entry"); vrele(ap->a_fvp); return (0); } @@ -1221,7 +1221,7 @@ abortit: */ if (xp != ip) { if (doingdirectory) - panic("rename: lost dir entry"); + panic("ufs_rename: lost dir entry"); } else { /* * If the source is a directory with a |