Staging: comedi: fix printk issue in jr3_pci.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Mon, 12 Dec 2011 07:22:19 +0000 (12:52 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2011 00:22:17 +0000 (16:22 -0800)
This is a patch to the jr3_pci.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Added KERN_facility levels for printks.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/jr3_pci.c

index 56f7e26ac8caa9e965682b40e880c568ac9bf0de..cda67a0337971232faf4b278f547be3337fb41ca 100644 (file)
@@ -593,24 +593,24 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
                                        min_full_scale =
                                            get_min_full_scales(channel);
                                        printk("Obtained Min. Full Scales:\n");
-                                       printk("%i   ", (min_full_scale).fx);
-                                       printk("%i   ", (min_full_scale).fy);
-                                       printk("%i   ", (min_full_scale).fz);
-                                       printk("%i   ", (min_full_scale).mx);
-                                       printk("%i   ", (min_full_scale).my);
-                                       printk("%i   ", (min_full_scale).mz);
-                                       printk("\n");
+                                       printk(KERN_DEBUG "%i ", (min_full_scale).fx);
+                                       printk(KERN_CONT "%i ", (min_full_scale).fy);
+                                       printk(KERN_CONT "%i ", (min_full_scale).fz);
+                                       printk(KERN_CONT "%i ", (min_full_scale).mx);
+                                       printk(KERN_CONT "%i ", (min_full_scale).my);
+                                       printk(KERN_CONT "%i ", (min_full_scale).mz);
+                                       printk(KERN_CONT "\n");
 
                                        max_full_scale =
                                            get_max_full_scales(channel);
                                        printk("Obtained Max. Full Scales:\n");
-                                       printk("%i   ", (max_full_scale).fx);
-                                       printk("%i   ", (max_full_scale).fy);
-                                       printk("%i   ", (max_full_scale).fz);
-                                       printk("%i   ", (max_full_scale).mx);
-                                       printk("%i   ", (max_full_scale).my);
-                                       printk("%i   ", (max_full_scale).mz);
-                                       printk("\n");
+                                       printk(KERN_DEBUG "%i ", (max_full_scale).fx);
+                                       printk(KERN_CONT "%i ", (max_full_scale).fy);
+                                       printk(KERN_CONT "%i ", (max_full_scale).fz);
+                                       printk(KERN_CONT "%i ", (max_full_scale).mx);
+                                       printk(KERN_CONT "%i ", (max_full_scale).my);
+                                       printk(KERN_CONT "%i ", (max_full_scale).mz);
+                                       printk(KERN_CONT "\n");
 
                                        set_full_scales(channel,
                                                        max_full_scale);