lkml.org 
[lkml]   [2011]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/25] Staging: comedi: fix printk issue in das08_cs.c
    Date
    This is a patch to the das08_cs.c file that fixes up a printk
    warning found by the checkpatch.pl tool.

    converted printks to dev_printk.

    Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
    ---
    drivers/staging/comedi/drivers/das08_cs.c | 8 +++-----
    1 files changed, 3 insertions(+), 5 deletions(-)

    diff --git a/drivers/staging/comedi/drivers/das08_cs.c b/drivers/staging/comedi/drivers/das08_cs.c
    index 6d91d30..4ad398a 100644
    --- a/drivers/staging/comedi/drivers/das08_cs.c
    +++ b/drivers/staging/comedi/drivers/das08_cs.c
    @@ -79,22 +79,20 @@ static int das08_cs_attach(struct comedi_device *dev,
    if (ret < 0)
    return ret;

    - printk("comedi%d: das08_cs: ", dev->minor);
    + dev_info(dev->hw_dev, "comedi%d: das08_cs:\n", dev->minor);
    /* deal with a pci board */

    if (thisboard->bustype == pcmcia) {
    if (link == NULL) {
    - printk(" no pcmcia cards found\n");
    + dev_err(dev->hw_dev, "no pcmcia cards found\n");
    return -EIO;
    }
    iobase = link->resource[0]->start;
    } else {
    - printk(" bug! board does not have PCMCIA bustype\n");
    + dev_err(dev->hw_dev, "bug! board does not have PCMCIA bustype\n");
    return -EINVAL;
    }

    - printk("\n");
    -
    return das08_common_attach(dev, iobase);
    }

    --
    1.7.0.4


    \
     
     \ /
      Last update: 2011-11-19 05:41    [W:0.034 / U:63.568 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site