From owner-p4-projects@FreeBSD.ORG Fri Jan 2 15:11:49 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 957E316A4D0; Fri, 2 Jan 2004 15:11:49 -0800 (PST) Delivered-To: perforce@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 6E6E316A4CF; Fri, 2 Jan 2004 15:11:49 -0800 (PST) Date: Fri, 2 Jan 2004 17:11:49 -0600 From: Juli Mallett To: Sam Leffler Message-ID: <20040102231149.GA69929@FreeBSD.org> References: <200401022204.i02M4ob5010556@repoman.freebsd.org> <200401021513.38759.sam@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401021513.38759.sam@errno.com> User-Agent: Mutt/1.4.1i X-Title: Code Maven X-Towel: Yes X-Negacore: Yes X-Authentication-Warning: localhost: juli pwned teh intarweb cc: Perforce Change Reviews cc: John Baldwin Subject: Re: PERFORCE change 44709 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2004 23:11:50 -0000 * Sam Leffler [ Date: 2004-01-02 ] [ w.r.t. Re: PERFORCE change 44709 for review ] > On Friday 02 January 2004 02:04 pm, John Baldwin wrote: > > http://perforce.freebsd.org/chv.cgi?CH=44709 > > > > Change 44709 by jhb@jhb_blue on 2004/01/02 14:04:27 > > > > Bah, stupid bug. > > > > Affected files ... > > > > .. //depot/projects/smpng/sys/modules/crash/crash.c#8 edit > > > > Differences ... > > > > ==== //depot/projects/smpng/sys/modules/crash/crash.c#8 (text+ko) ==== > > > > @@ -234,9 +234,9 @@ > > break; > > case 18: > > bzero(&test1_mtx, sizeof(test1_mtx)); > > - bzero(&test1_mtx, sizeof(test2_mtx)); > > + bzero(&test2_mtx, sizeof(test2_mtx)); > > mtx_init(&test1_mtx, "test1", NULL, MTX_DEF); > > - mtx_init(&test1_mtx, "test2", NULL, MTX_DEF | > > + mtx_init(&test2_mtx, "test2", NULL, MTX_DEF | > > MTX_RECURSE); > > #define TRYLOCK_TEST(lock, descr) do { \ > > status = mtx_trylock((lock)); \ > > Bah bah, bogus assertions. Agreed. I want something to *initialize* these things. I hate one bit of code I have at work: sc->[all fields] = [appropriate values for fields] bzero(&sc->mtx, sizeof sc->mtx); mtx_init(&sc->mtx, "blah", NULL, MTX_DEF); *shrug* -- juli mallett. email: jmallett@freebsd.org; efnet: juli; aim: bsdflata; you can't get me to burn out though you try to break my spirit and me.