From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 12 23:28:48 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F7BD16A517 for ; Tue, 12 Dec 2006 23:28:48 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from antivirus.uni-rostock.de (mailrelay1.uni-rostock.de [139.30.8.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39C5E445C7 for ; Tue, 12 Dec 2006 23:09:54 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from antivirus.exch.rz.uni-rostock.de ([127.0.0.1]) by antivirus.uni-rostock.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 13 Dec 2006 00:10:52 +0100 Received: from antivirus.uni-rostock.de (unverified) by antivirus.exch.rz.uni-rostock.de (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Wed, 13 Dec 2006 00:10:51 +0100 Received: from mail pickup service by antivirus.uni-rostock.de with Microsoft SMTPSVC; Wed, 13 Dec 2006 00:10:51 +0100 X-SCL: 1 39.25% Received: from mail.uni-rostock.de ([139.30.8.11]) by antivirus.uni-rostock.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 13 Dec 2006 00:10:42 +0100 Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0JA600BN3ODUMK@mail.uni-rostock.de> for freebsd-hackers@freebsd.org; Wed, 13 Dec 2006 00:10:42 +0100 (MET) Received: by britannica.bec.de (Postfix, from userid 1000) id 5B77E12A54; Wed, 13 Dec 2006 00:10:39 +0100 (CET) Date: Wed, 13 Dec 2006 00:10:39 +0100 From: Joerg Sonnenberger In-reply-to: <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com> To: freebsd-hackers@freebsd.org Mail-followup-to: freebsd-hackers@freebsd.org Message-id: <20061212231039.GA4531@britannica.bec.de> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) References: <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com> X-OriginalArrivalTime: 12 Dec 2006 23:10:42.0881 (UTC) FILETIME=[BF423310:01C71E42] Subject: Re: KASSERT in kernel module outside src/sys X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2006 23:28:48 -0000 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. Tried CFLAGS+= -DINVARIANTS in the Makefile of the module? Joerg