diff options
author | kib <kib@FreeBSD.org> | 2008-12-07 13:25:06 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-12-07 13:25:06 +0000 |
commit | 868630039f3335e1079202ef1795b0391612c7e2 (patch) | |
tree | 43fb227cc71fceb371a414d47d1bb871e3b5597b /sys/ufs | |
parent | 2da73faaff7fd48879b7ff2112710703c150a1c7 (diff) | |
download | FreeBSD-src-868630039f3335e1079202ef1795b0391612c7e2.zip FreeBSD-src-868630039f3335e1079202ef1795b0391612c7e2.tar.gz |
Improve usefulness of the panic by printing the pointer to the problematic
dquot. In-tree gdb is often unable to get the dq value, so supply it in
panic message.
MFC after: 3 days
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index e5cb956..5f068c0 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -1151,7 +1151,7 @@ hfound: DQI_LOCK(dq); return (EUSERS); } if (dq->dq_cnt || (dq->dq_flags & DQ_MOD)) - panic("dqget: free dquot isn't"); + panic("dqget: free dquot isn't %p", dq); TAILQ_REMOVE(&dqfreelist, dq, dq_freelist); if (dq->dq_ump != NULL) LIST_REMOVE(dq, dq_hash); |