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

2010-10-26 Thread Doug Barton
On 10/25/2010 5:53 PM, Garrett Cooper wrote: On Mon, Oct 25, 2010 at 2:15 PM, Doug Bartondo...@freebsd.org 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

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

2010-10-26 Thread Ivan Voras
On 10/26/10 02:53, Garrett Cooper wrote: Wouldn't noting this in the manpage be sufficient? I ran into this `item' (:)..) today after a power outage because nvidia-driver was built against different kernel headers, and it prints out the error clear as day on /dev/console, Luckily in

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

2010-10-26 Thread John Baldwin
On Monday, October 25, 2010 3:19:26 pm Xin LI wrote: 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:

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

2010-10-25 Thread Xin LI
-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

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

2010-10-25 Thread Doug Barton
On 10/25/2010 12:19, Xin LI wrote: Here is a simple patch that adds more meaning messages when kldload hits ENOEXEC. +1 on anything that makes this (and related) error more clear. I know I've stumbled over it numerous times. Doug -- Nothin' ever doesn't change, but nothin'

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

2010-10-25 Thread Garrett Cooper
On Mon, Oct 25, 2010 at 12:26 PM, Doug Barton do...@freebsd.org wrote: On 10/25/2010 12:19, Xin LI wrote: Here is a simple patch that adds more meaning messages when kldload hits ENOEXEC. +1 on anything that makes this (and related) error more clear. I know I've stumbled over it numerous

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

2010-10-25 Thread Paul B Mahol
On 10/25/10, Xin LI delp...@delphij.net wrote: -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

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

2010-10-25 Thread Ivan Voras
On 10/25/10 22:13, Garrett Cooper wrote: On Mon, Oct 25, 2010 at 12:26 PM, Doug Bartondo...@freebsd.org wrote: On 10/25/2010 12:19, Xin LI wrote: Here is a simple patch that adds more meaning messages when kldload hits ENOEXEC. +1 on anything that makes this (and related) error more clear.

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

2010-10-25 Thread Doug Barton
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

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

2010-10-25 Thread Garrett Cooper
On Mon, Oct 25, 2010 at 2:15 PM, Doug Barton do...@freebsd.org 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

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

2010-10-25 Thread Xin LI
-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

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

2010-10-25 Thread Garrett Cooper
On Mon, Oct 25, 2010 at 6:06 PM, Xin LI delp...@delphij.net 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