From owner-freebsd-current@FreeBSD.ORG Mon Jul 12 21:38:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C74C716A4CE for ; Mon, 12 Jul 2004 21:38:37 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CCC243D1D for ; Mon, 12 Jul 2004 21:38:37 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i6CLcaJg041119; Mon, 12 Jul 2004 16:38:36 -0500 (CDT) (envelope-from dan) Date: Mon, 12 Jul 2004 16:38:36 -0500 From: Dan Nelson To: John Polstra Message-ID: <20040712213835.GA98593@dan.emsphone.com> References: <20040712194438.B9CFB16A4D1@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: kldload won't load X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 21:38:37 -0000 In the last episode (Jul 12), John Polstra said: > On 12-Jul-2004 Bill Paul wrote: > > When a kernel module doesn't load correctly, this is your cue to > > run "dmesg" and look at the messages printed in the kernel message > > buffer. That will tell you why it didn't load. Of course, nobody > > ever remembers this, and apparently running xconsole is no longer > > in vogue. > > > > This needs to be a FAQ. > > No, it needs to be fixed. It's printing a totally incorrect error > message, and nobody should have to use dmesg to find out what's really > happened. Maybe a uprintf would be useful here? imgact_elf.c does that to add a little more info before returning ENOEXEC. -- Dan Nelson dnelson@allantgroup.com