From owner-freebsd-current@FreeBSD.ORG Tue Oct 26 01:34:33 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D611106564A for ; Tue, 26 Oct 2010 01:34:33 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id B20588FC12 for ; Tue, 26 Oct 2010 01:34:32 +0000 (UTC) Received: by wwb34 with SMTP id 34so152475wwb.1 for ; Mon, 25 Oct 2010 18:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=dX46ycyb01k9lPR7QhvkOyY4f77Rr+U9IIUu6u+qsVg=; b=hLHJY4Ez3ehIuoKqd+ReQtkC9FnXfzUzgSZS9d8uLuS28RkDQOfefhtJ1X6JRFiblF HmhPYZRB/SNWaq9LTWwSaLVn6MUV+jxLVr+RRmUOaqnJ6zXsXa7CMhauHUmG6vNxss0n GAfG7a9qYVIs1TyXjtQv1c9zPtDqwwlSJz4Bk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=OpWt1KPTMppBJQQckmixAj3vkz1CTI26xG1kY1m+RyVeWSuxKxwgSowatbnF8w2/yh BvbmSb0VntQ7TkgESUkZ88xqa0zgi+KMuOTgIojhvFyrQ+mrcDGk8R83BeAVeIv7IBfG vxv+nNu66HR8/VxjKZE+VlLaZpsdM6T5kSqvM= MIME-Version: 1.0 Received: by 10.216.1.17 with SMTP id 17mr1059252wec.99.1288056871626; Mon, 25 Oct 2010 18:34:31 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.216.10.198 with HTTP; Mon, 25 Oct 2010 18:34:31 -0700 (PDT) In-Reply-To: <4CC629A4.3080703@delphij.net> References: <4CC5D83E.8030505@delphij.net> <4CC5D9DB.1020409@FreeBSD.org> <4CC5F35A.7090809@FreeBSD.org> <4CC629A4.3080703@delphij.net> Date: Mon, 25 Oct 2010 18:34:31 -0700 X-Google-Sender-Auth: cmZ_01WNUUvpfYok4mtV4JLH01c Message-ID: From: Garrett Cooper To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: [RFC] More meaningful information about ENOEXEC for kldload(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 26 Oct 2010 01:34:33 -0000 On Mon, Oct 25, 2010 at 6:06 PM, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 10/25/10 14:15, Doug Barton wrote: >> On 10/25/2010 13:33, Ivan Voras wrote: >>> (except if the message is changed to say "please look at the kernel >>> syslog messages to find out the real reason for this failure") >> >> Thinking about Garrett's response as well, this may be the best way to >> go. At this point I'm also not concerned about waiting for an ideal >> solution. IMO an incremental change here would be most welcome. > > I'm thinking about the attached patch which turns printf(9) to > uprintf(9) call. Err... that would cause problems if someone was reading the syslog output as it would no longer be logged (from uprintf(9)): The uprintf() function outputs to the current process' controlling tty, while printf() writes to the console as well as to the logging facility. I personally like reading syslog output more than I do like reading the console because messages can get lost on the console quicker :/... Is there a hybrid option? Thanks! -Garrett