• A
    [PATCH] initcall failure reporting · c1cda48a
    Andrew Morton 提交于
    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: NPaul Jackson <pj@sgi.com>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    c1cda48a
main.c 17.5 KB