@@ -371,15 +371,15 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
371371 iobase = it -> options [0 ];
372372 irq [0 ] = it -> options [1 ];
373373
374- printk ("comedi%d: %s: io: %lx " , dev -> minor , driver .driver_name ,
374+ printk (KERN_INFO "comedi%d: %s: io: %lx " , dev -> minor , driver .driver_name ,
375375 iobase );
376376
377377 dev -> iobase = iobase ;
378378
379379 if (!iobase || !request_region (iobase ,
380380 thisboard -> total_iosize ,
381381 driver .driver_name )) {
382- printk ("I/O port conflict\n" );
382+ printk (KERN_ERR "I/O port conflict\n" );
383383 return - EIO ;
384384 }
385385
@@ -394,7 +394,7 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
394394 * convenient macro defined in comedidev.h.
395395 */
396396 if (alloc_private (dev , sizeof (struct pcmmio_private )) < 0 ) {
397- printk ("cannot allocate private data structure\n" );
397+ printk (KERN_ERR "cannot allocate private data structure\n" );
398398 return - ENOMEM ;
399399 }
400400
@@ -417,7 +417,7 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
417417 kcalloc (n_subdevs , sizeof (struct pcmmio_subdev_private ),
418418 GFP_KERNEL );
419419 if (!devpriv -> sprivs ) {
420- printk ("cannot allocate subdevice private data structures\n" );
420+ printk (KERN_ERR "cannot allocate subdevice private data structures\n" );
421421 return - ENOMEM ;
422422 }
423423 /*
@@ -427,7 +427,7 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
427427 * Allocate 1 AI + 1 AO + 2 DIO subdevs (24 lines per DIO)
428428 */
429429 if (alloc_subdevices (dev , n_subdevs ) < 0 ) {
430- printk ("cannot allocate subdevice data structures\n" );
430+ printk (KERN_ERR "cannot allocate subdevice data structures\n" );
431431 return - ENOMEM ;
432432 }
433433
@@ -557,14 +557,14 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
557557 */
558558
559559 if (irq [0 ]) {
560- printk ("irq: %u " , irq [0 ]);
560+ printk (KERN_DEBUG "irq: %u " , irq [0 ]);
561561 if (thisboard -> dio_num_asics == 2 && irq [1 ])
562- printk ("second ASIC irq: %u " , irq [1 ]);
562+ printk (KERN_DEBUG "second ASIC irq: %u " , irq [1 ]);
563563 } else {
564- printk ("(IRQ mode disabled) " );
564+ printk (KERN_INFO "(IRQ mode disabled) " );
565565 }
566566
567- printk ("attached\n" );
567+ printk (KERN_INFO "attached\n" );
568568
569569 return 1 ;
570570}
@@ -581,7 +581,7 @@ static int pcmmio_detach(struct comedi_device *dev)
581581{
582582 int i ;
583583
584- printk ("comedi%d: %s: remove\n" , dev -> minor , driver .driver_name );
584+ printk (KERN_INFO "comedi%d: %s: remove\n" , dev -> minor , driver .driver_name );
585585 if (dev -> iobase )
586586 release_region (dev -> iobase , thisboard -> total_iosize );
587587
@@ -622,7 +622,7 @@ static int pcmmio_dio_insn_bits(struct comedi_device *dev,
622622
623623#ifdef DAMMIT_ITS_BROKEN
624624 /* DEBUG */
625- printk ("write mask: %08x data: %08x\n" , data [0 ], data [1 ]);
625+ printk (KERN_DEBUG "write mask: %08x data: %08x\n" , data [0 ], data [1 ]);
626626#endif
627627
628628 s -> state = 0 ;
@@ -644,9 +644,9 @@ static int pcmmio_dio_insn_bits(struct comedi_device *dev,
644644#ifdef DAMMIT_ITS_BROKEN
645645 /* DEBUG */
646646 printk
647- ("byte %d wmb %02x db %02x offset %02d io %04x, data_in %02x " ,
648- byte_no , ( unsigned ) write_mask_byte , (unsigned )data_byte ,
649- offset , ioaddr , (unsigned )byte );
647+ (KERN_DEBUG "byte %d wmb %02x db %02x offset %02d io %04x,"
648+ " data_in %02x " , byte_no , (unsigned )write_mask_byte ,
649+ ( unsigned ) data_byte , offset , ioaddr , (unsigned )byte );
650650#endif
651651
652652 if (write_mask_byte ) {
@@ -663,7 +663,7 @@ static int pcmmio_dio_insn_bits(struct comedi_device *dev,
663663 }
664664#ifdef DAMMIT_ITS_BROKEN
665665 /* DEBUG */
666- printk ("data_out_byte %02x\n" , (unsigned )byte );
666+ printk (KERN_DEBUG "data_out_byte %02x\n" , (unsigned )byte );
667667#endif
668668 /* save the digital input lines for this byte.. */
669669 s -> state |= ((unsigned int )byte ) << offset ;
@@ -674,7 +674,7 @@ static int pcmmio_dio_insn_bits(struct comedi_device *dev,
674674
675675#ifdef DAMMIT_ITS_BROKEN
676676 /* DEBUG */
677- printk ("s->state %08x data_out %08x\n" , s -> state , data [1 ]);
677+ printk (KERN_DEBUG "s->state %08x data_out %08x\n" , s -> state , data [1 ]);
678678#endif
679679
680680 return 2 ;
@@ -886,7 +886,7 @@ static irqreturn_t interrupt_pcmmio(int irq, void *d)
886886 * with commands..
887887 */
888888 printk
889- ("PCMMIO DEBUG: got edge detect interrupt %d asic %d which_chans: %06x\n" ,
889+ (KERN_DEBUG " got edge detect interrupt %d asic %d which_chans: %06x\n" ,
890890 irq , asic , triggered );
891891 for (s = dev -> subdevices + 2 ;
892892 s < dev -> subdevices + dev -> n_subdevices ;
0 commit comments