Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2011 16:29:07 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216963 - head/sys/i386/xen
Message-ID:  <201101041629.p04GT71A044027@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Tue Jan  4 16:29:07 2011
New Revision: 216963
URL: http://svn.freebsd.org/changeset/base/216963

Log:
  Spell CRITICAL_ASSERT correctly.
  
  Submitted by:	jhb
  MFC with:	r216944

Modified:
  head/sys/i386/xen/xen_machdep.c

Modified: head/sys/i386/xen/xen_machdep.c
==============================================================================
--- head/sys/i386/xen/xen_machdep.c	Tue Jan  4 16:21:14 2011	(r216962)
+++ head/sys/i386/xen/xen_machdep.c	Tue Jan  4 16:29:07 2011	(r216963)
@@ -253,8 +253,7 @@ _xen_flush_queue(void)
 
 #ifdef INVARIANTS
 	if (__predict_true(gdtset))
-		KASSERT(curthread->td_critnest > 0,
-		    ("xen queue flush should be in a critical section"));
+		CRITICAL_ASSERT(curthread);
 #endif
 
 	XPQ_IDX = 0;



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