Skip to content
  • Andrew Morton's avatar
    [PATCH] initcall failure reporting · c1cda48a
    Andrew Morton authored
    
    
    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: default avatarPaul Jackson <pj@sgi.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c1cda48a