[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1323348745-31477-20-git-send-email-ravishankar.km@greenturtles.in>
Date: Thu, 8 Dec 2011 18:22:15 +0530
From: Ravishankar karkala Mallikarjunayya
<ravishankar.km@...enturtles.in>
To: gregkh@...e.de, wfp5p@...ginia.edu
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Ravishankar karkala Mallikarjunayya
<ravishankar.km@...enturtles.in>
Subject: [PATCH 20/30] Staging: comedi: fix printk issue in jr3_pci.c
This is a patch to the jr3_pci.c file that fixes up a
printk warning found by the checkpatch.pl tool.
Converted printks to pr_<levels>.
Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@...enturtles.in>
---
drivers/staging/comedi/drivers/jr3_pci.c | 46 ++++++++++++++---------------
1 files changed, 22 insertions(+), 24 deletions(-)
diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c
index 01b0e08..8273fb9 100644
--- a/drivers/staging/comedi/drivers/jr3_pci.c
+++ b/drivers/staging/comedi/drivers/jr3_pci.c
@@ -592,25 +592,23 @@ 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");
+ pr_debug("Obtained Min. Full Scales:\n");
+ pr_debug("%i\n", (min_full_scale).fx);
+ pr_debug("%i\n", (min_full_scale).fy);
+ pr_debug("%i\n", (min_full_scale).fz);
+ pr_debug("%i\n", (min_full_scale).mx);
+ pr_debug("%i\n", (min_full_scale).my);
+ pr_debug("%i\n", (min_full_scale).mz);
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");
+ pr_debug("Obtained Max. Full Scales:\n");
+ pr_debug("%i\n", (max_full_scale).fx);
+ pr_debug("%i\n", (max_full_scale).fy);
+ pr_debug("%i\n", (max_full_scale).fz);
+ pr_debug("%i\n", (max_full_scale).mx);
+ pr_debug("%i\n", (max_full_scale).my);
+ pr_debug("%i\n", (max_full_scale).mz);
set_full_scales(channel,
max_full_scale);
@@ -666,14 +664,14 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
{
int i;
for (i = 0; i < 9; i++) {
- printk("%d %d - %d\n",
- i,
- p->
- range[i].range.
- min,
- p->
- range[i].range.
- max);
+ pr_debug("%d %d - %d\n",
+ i,
+ p->
+ range[i].range.
+ min,
+ p->
+ range[i].range.
+ max);
}
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists