KASSERT in kernel module outside src/sys
Alexander at Leidinger.net
Wed Dec 13 00:12:28 PST 2006
Quoting Kevin Sanders <newroswell at gmail.com> (from Tue, 12 Dec 2006
> On 12/12/06, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
>> On Tue, Dec 12, 2006 at 02:30:41PM -0800, Kevin Sanders wrote:
>>> I'm trying to use KASSERT in my own kernel module and I can't get it
>>> to assert even with a KASSERT(0, "test panic"). Is there something
>>> else I need to do besides add options INVARIANTS to my kernel config
>>> file. Any clues would be appreciated.
>> CFLAGS+= -DINVARIANTS
>> in the Makefile of the module?
> Thanks all. That almost works, I'm getting a syntax error before
> string constant. I took the easy way and undefined and redefined
> KASSERT to panic when the condition is false for now.
Hold the MAYO & pass the COSMIC AWARENESS ...
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-hackers