* [PATCH] Staging: comedi: poc: Adding some KERN_ facility level
@ 2010-02-25 20:40 Chihau Chau
2010-02-27 9:28 ` Ameya Palande
0 siblings, 1 reply; 2+ messages in thread
From: Chihau Chau @ 2010-02-25 20:40 UTC (permalink / raw)
To: gregkh; +Cc: wfp5p, sgayda2, mithlesh, devel, linux-kernel, Chihau Chau
From: Chihau Chau <chihau@gmail.com>
This fixes some coding style issues like include KERN_ facility levels
in some printk() and one trailing whitespace error.
Signed-off-by: Chihau Chau <chihau@gmail.com>
---
drivers/staging/comedi/drivers/poc.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/comedi/drivers/poc.c b/drivers/staging/comedi/drivers/poc.c
index 207d5ee..e15fbd7 100644
--- a/drivers/staging/comedi/drivers/poc.c
+++ b/drivers/staging/comedi/drivers/poc.c
@@ -122,22 +122,21 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unsigned int iosize;
iobase = it->options[0];
- printk("comedi%d: poc: using %s iobase 0x%lx\n", dev->minor,
+ printk(KERN_INFO "comedi%d: poc: using %s iobase 0x%lx\n", dev->minor,
this_board->name, iobase);
dev->board_name = this_board->name;
if (iobase == 0) {
- printk("io base address required\n");
+ printk(KERN_ERR "io base address required\n");
return -EINVAL;
}
iosize = this_board->iosize;
/* check if io addresses are available */
if (!request_region(iobase, iosize, "dac02")) {
- printk
- ("I/O port conflict: failed to allocate ports 0x%lx to "
- "0x%lx\n", iobase, iobase + iosize - 1);
+ printk(KERN_ERR "I/O port conflict: failed to allocate ports "
+ "0x%lx to 0x%lx\n", iobase, iobase + iosize - 1);
return -EIO;
}
dev->iobase = iobase;
@@ -158,7 +157,7 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->insn_bits = this_board->insnbits;
if (s->type == COMEDI_SUBD_AO || s->type == COMEDI_SUBD_DO)
s->subdev_flags = SDF_WRITABLE;
-
+
return 0;
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Staging: comedi: poc: Adding some KERN_ facility level
2010-02-25 20:40 [PATCH] Staging: comedi: poc: Adding some KERN_ facility level Chihau Chau
@ 2010-02-27 9:28 ` Ameya Palande
0 siblings, 0 replies; 2+ messages in thread
From: Ameya Palande @ 2010-02-27 9:28 UTC (permalink / raw)
To: Chihau Chau; +Cc: gregkh, devel, linux-kernel, sgayda2
Hi Chihau,
On Thu, Feb 25, 2010 at 10:40 PM, Chihau Chau <chihau@gmail.com> wrote:
> From: Chihau Chau <chihau@gmail.com>
>
> This fixes some coding style issues like include KERN_ facility levels
> in some printk() and one trailing whitespace error.
>
> Signed-off-by: Chihau Chau <chihau@gmail.com>
While you are at it, instead of using printk(KERN_INFO ""); you can also use
pr_info();
Cheers,
Ameya.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-27 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25 20:40 [PATCH] Staging: comedi: poc: Adding some KERN_ facility level Chihau Chau
2010-02-27 9:28 ` Ameya Palande
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox