Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2008 13:25:06 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185739 - head/sys/ufs/ufs
Message-ID:  <200812071325.mB7DP64P026630@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Dec  7 13:25:06 2008
New Revision: 185739
URL: http://svn.freebsd.org/changeset/base/185739

Log:
  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

Modified:
  head/sys/ufs/ufs/ufs_quota.c

Modified: head/sys/ufs/ufs/ufs_quota.c
==============================================================================
--- head/sys/ufs/ufs/ufs_quota.c	Sun Dec  7 07:02:26 2008	(r185738)
+++ head/sys/ufs/ufs/ufs_quota.c	Sun Dec  7 13:25:06 2008	(r185739)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812071325.mB7DP64P026630>