Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 18:06:44 -0700
From:      Xin LI <delphij@delphij.net>
To:        freebsd-current@freebsd.org
Subject:   Re: [RFC] More meaningful information about ENOEXEC for kldload(8)
Message-ID:  <4CC629A4.3080703@delphij.net>
In-Reply-To: <4CC5F35A.7090809@FreeBSD.org>
References:  <4CC5D83E.8030505@delphij.net>	<4CC5D9DB.1020409@FreeBSD.org>	<AANLkTindYRwpmA=En%2BpYyHVcUkmQ0wsZrB7Y-f2E=vK=@mail.gmail.com>	<ia4pjg$650$1@dough.gmane.org> <4CC5F35A.7090809@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
-----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.

Cheers,
- -- 
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!	       Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iQEcBAEBCAAGBQJMximkAAoJEATO+BI/yjfB5ZcH/2Z3UxQmPcRb1YL/+y4imUne
jrfLwSXABUcN48w77M1a8qhb0leKrQDzkZxM4Q9+0m/0Y18TA5EYBEIyuVebuVoM
+YcfbTI2CH8UAFPUY/su6WNAUHEFQy4tfx4dAeTgOWecVkcoKGGbI6p0V1NCAYUS
WRg6VeC7Tv8HySemQHzkKyBFHB6zKWy4U95FDDltiZlzQ5Vv+VquSOURZFw2O7F6
qlvO6B4F1EAbwfibRh5ihKbc1F4uqYrGmidgeH0MfarGsjBXoffmrB7Z+N5409+s
d843bw/zR0rgnYkGuE6WNXnChYQvLb6Mgzrg10yDRVhxamUOzq4PHuL5iZ8DBEM=
=t2jW
-----END PGP SIGNATURE-----

[-- Attachment #2 --]
Index: sys/kern/kern_linker.c
===================================================================
--- sys/kern/kern_linker.c	(revision 214355)
+++ sys/kern/kern_linker.c	(working copy)
@@ -2085,7 +2085,7 @@
 		}
 		error = linker_load_module(NULL, modname, lf, verinfo, NULL);
 		if (error) {
-			printf("KLD %s: depends on %s - not available or"
+			uprintf("KLD %s: depends on %s - not available or"
 			    " version mismatch\n", lf->filename, modname);
 			break;
 		}

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CC629A4.3080703>