[PATCH] printk to console in parport_pc

From: Cesar Eduardo Barros (cesarb@nitnet.com.br)
Date: Fri Aug 04 2000 - 20:21:46 EDT

  • Next message: Alexander Viro: "Re: test6-pre2 loop in ext2_get_block"

    This patch fixes an annoying printk to console bug (which triggers every time I
    load lprng, which triggers loading of parport modules).

    diff -Naur linux-2.4.0-test6-pre3.orig/drivers/parport/parport_pc.c linux-2.4.0-test6-pre3/drivers/parport/parport_pc.c
    --- linux-2.4.0-test6-pre3.orig/drivers/parport/parport_pc.c Fri Aug 4 21:13:07 2000
    +++ linux-2.4.0-test6-pre3/drivers/parport/parport_pc.c Fri Aug 4 21:17:33 2000
    @@ -2111,7 +2111,7 @@
     #undef printmode
             printk("]\n");
             if (probedirq != PARPORT_IRQ_NONE)
    - printk("%s: irq %d detected\n", p->name, probedirq);
    + printk(KERN_INFO "%s: irq %d detected\n", p->name, probedirq);
             parport_proc_register(p);
     
             request_region (p->base, 3, p->name);

    -- 
    Cesar Eduardo Barros
    cesarb@nitnet.com.br
    cesarb@dcc.ufrj.br
    

    - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri Aug 04 2000 - 20:26:45 EDT