[RFC] More meaningful information about ENOEXEC for kldload(8)

Xin LI delphij at delphij.net
Tue Oct 26 01:07:06 UTC 2010


-----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 at 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-----
-------------- next part --------------
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;
 		}


More information about the freebsd-current mailing list