Subject: Re: switch to two-argument KASSERT?
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 01/14/2004 03:59:13
> I'd suggest having a KASSERT2(cond, complaint) and then KASSERT could be
> #define KASSERT(cond)  KASSERT2(cond, ("assertion failure: " #cond))

Surely that should be

#define KASSERT(cond)  KASSERT2(cond, ("assertion failure: %s", #cond))

to guard against conditions like "(SBSIZE%sb->fs_fsize) == 0"?

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B