]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] initcall failure reporting
authorAndrew Morton <akpm@osdl.org>
Sat, 25 Mar 2006 11:07:15 +0000 (03:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:53 +0000 (08:22 -0800)
commitc1cda48af8b330a23206eceef3bd030b53c979cd
treee39240fd743e22804d29ab0f38d5a0d5e64457b7
parentcd02b966bfcad12d1b2e265dc8dbc331d4c184c4
[PATCH] initcall failure reporting

We presently ignore the return values from initcalls.  But that can carry
useful debugging information.  So print it out if it's non-zero.

It turns out the -ENODEV happens quite a lot, due to built-in drivers which
have no hardware to drive.  So suppress that unless initcall_debug was
specified.

Also make the warning message more friendly by printing the name of the
initcall function.

Also drop the KERN_DEBUG from the initcall_debug message.  If we specified
inticall_debug then we obviously want to see the messages.

Acked-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
init/main.c