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

From: Xin LI <delphij_at_delphij.net>
Date: Mon, 25 Oct 2010 12:19:26 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Here is a simple patch that adds more meaning messages when kldload hits
ENOEXEC.

Before patch:

kldload: can't load geom_eli.ko: Exec format error

After patch:

kldload: can't load geom_eli.ko: Exec format error
kldload: Dependendent kernel module cannot be loaded from kern.module_path?

Comments?

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)

iQEcBAEBCAAGBQJMxdg+AAoJEATO+BI/yjfBEasH/1vKrCT/HX0xEUFYLEK5mjNr
iZPJVIpe5R9jRWLzb1065qMQR5eMgiotig9p/ymOebq3azQAsDagOJDzzYa46ReS
yNlUYq6GnVHsOh15cBHxtRBkuJ0Q3jWammPAXf0oYmvFrPBQstLp7iyhS7PZUUBb
7DnFMPLh3FSiovli6JFwhHpYQSDwz7K4UPzj/Un0DwuMoz8fyGoyOz8ZRqAY6D5g
GwesbqBhjDaOuwJNFaNcjoEK4Eq/iwkotZCz7l38Skmlle7wwycuyYdEIuk9feiS
/dn4CyhzKwNVbVPqZOEJ99bAuxJUwsfDEpGeYLH97rGqz7U4Y6LM18R/fip+0DM=
=qeYL
-----END PGP SIGNATURE-----

Received on Mon Oct 25 2010 - 17:19:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:08 UTC