Subject: Re: kpsignal2 panic
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: David Young <dyoung@pobox.com>
List: tech-kern
Date: 10/06/2003 14:50:18
On Mon, Oct 06, 2003 at 12:40:10PM -0700, Jonathan Stone wrote:
> >For the most part, I dislike KASSERT().  It tells you it didn't like
> >something but you have no easy way to figure out what.  A printf or
> >panic is very much superior in making the diagnosis.
> 
> "What Matt said".
> 
> while working on netipsec/ I noticed FreeBSD has a two-argument
> KASSERT(): first is the boolean expression and second is a
> paren-enclosed printf() argument list.  Much nicer.  maybe we could
> copy that as KASSERT2() (to save a pass through the whole kernel tree
> adding a desecriptive argument)

FWIW, the Atheros driver and the 802.11 layer I am importing from FreeBSD
use KASSERT() a lot. I agree it is nicer.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933