Used DPRINTK() instead of rt_printk() in a few places to generate less
authorIan Abbott <abbotti@mev.co.uk>
Tue, 25 Mar 2008 12:50:38 +0000 (12:50 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Tue, 25 Mar 2008 12:50:38 +0000 (12:50 +0000)
output on the kernel log by default.

comedi/drivers/adv_pci1723.c

index cb437d0a5c71bd1bc7e302a869368525cc01daa8..de7077d2ba31d14cd38faf94b4593e444e2af2b8 100644 (file)
@@ -176,7 +176,7 @@ typedef struct {
 static int pci1723_reset(comedi_device * dev)
 {
        int i;
-       rt_printk("adv_pci1723 EDBG: BGN: pci1723_reset(...)\n");
+       DPRINTK("adv_pci1723 EDBG: BGN: pci1723_reset(...)\n");
 
        outw(0x01, dev->iobase + PCI1723_SYN_SET);      // set synchronous output mode
 
@@ -196,7 +196,7 @@ static int pci1723_reset(comedi_device * dev)
        // set asynchronous output mode
        outw(0, dev->iobase + PCI1723_SYN_SET);
 
-       rt_printk("adv_pci1723 EDBG: END: pci1723_reset(...)\n");
+       DPRINTK("adv_pci1723 EDBG: END: pci1723_reset(...)\n");
        return 0;
 }
 
@@ -206,7 +206,7 @@ static int pci1723_insn_read_ao(comedi_device * dev, comedi_subdevice * s,
        int n, chan;
 
        chan = CR_CHAN(insn->chanspec);
-       rt_printk(" adv_PCI1723 DEBUG: pci1723_insn_read_ao() ----- \n");
+       DPRINTK(" adv_PCI1723 DEBUG: pci1723_insn_read_ao() ----- \n");
        for (n = 0; n < insn->n; n++)
                data[n] = devpriv->ao_data[chan];
 
@@ -222,7 +222,7 @@ static int pci1723_ao_write_winsn(comedi_device * dev, comedi_subdevice * s,
        int n, chan;
        chan = CR_CHAN(insn->chanspec);
 
-       rt_printk("PCI1723: the pci1723_ao_write_winsn() ------\n");
+       DPRINTK("PCI1723: the pci1723_ao_write_winsn() ------\n");
 
        for (n = 0; n < insn->n; n++) {