From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 13 01:03:32 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 3F8A816A40F for ; Wed, 13 Dec 2006 01:03:32 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id D813243C9E for ; Wed, 13 Dec 2006 01:02:05 +0000 (GMT) (envelope-from newroswell@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so19522uge for ; Tue, 12 Dec 2006 17:03:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IunDrPv1rGNigCrVl8Zisx/g6ntERQVgYVa7IEqNZPBukNqX4Zb3ByXc3X+GSE6KVE75EoayaJS0icUQHLnSsvKlOm6rHtaAAxNUlP2TU2qJADFb00uFwZTJCG29worexDHP2EeIW3M8lcj+sPQ7vNO1+xnI8k4f0QZ1J6e9NNY= Received: by 10.78.183.15 with SMTP id g15mr132584huf.1165971809962; Tue, 12 Dec 2006 17:03:29 -0800 (PST) Received: by 10.78.192.15 with HTTP; Tue, 12 Dec 2006 17:03:24 -0800 (PST) Message-ID: <375baf50612121703o3c9f7edcyaf4a3589ca8050c5@mail.gmail.com> Date: Tue, 12 Dec 2006 17:03:24 -0800 From: "Kevin Sanders" To: freebsd-hackers@freebsd.org In-Reply-To: <20061212231039.GA4531@britannica.bec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com> <20061212231039.GA4531@britannica.bec.de> 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: Wed, 13 Dec 2006 01:03:32 -0000 On 12/12/06, Joerg Sonnenberger 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. > > Tried > 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. Kevin