Staging: comedi: fixed print_k coding style issue in acl7225b.c
PATCH 1/1 Staging: comedi: fixed print_k coding style issue in acl7225b.c
This is a patch to the acl7225b.c file that fixes up 2 print_k warnings found by the checkpatch.pl tool.
Signed-off-by Daniel Lawrence <[email protected]>
--- drivers/staging/comedi/drivers/acl7225b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/comedi/drivers/acl7225b.c +2 -2
@@ -72,10 +72,10 @@ static int acl7225b_attach(struct comedi_device *dev, iobase = it->options[0 ]; iorange = this_board->io_range; -printk (KERN_INFO "comedi%d: acl7225b: board=%s 0x%04x\n" , dev->minor, +pr_info ("comedi%d: acl7225b: board=%s 0x%04x\n" , dev->minor, this_board->name, iobase);if (!request_region (iobase, iorange,"acl7225b" )) { -printk (KERN_ERR "comedi%d: request_region failed - I/O port conflict\n" , +pr_err ("comedi%d: request_region failed - I/O port conflict\n" , dev->minor);return -EIO ; }
Signature · 1 line
1.7.9.5
Quoted 15 lines · Danny Lawrence
This is a patch to the
acl7225b.cfile that fixes up 2print_kwarnings found by the checkpatch.pl tool.Signed-off-by Daniel Lawrence <[email protected]>--- drivers/staging/comedi/drivers/acl7225b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/comedi/drivers/acl7225b.c +0
-0@@ -72,10 +72,10 @@ static int acl7225b_attach(struct comedi_device *dev, iobase = it->options[0 ];
drivers/staging/comedi/drivers/acl7225b.c static int acl7225b_attach(struct comedi_device *dev, · line 81
Quoted 10 lines
drivers/staging/comedi/drivers/acl7225b.c +2
-2iorange = this_board->io_range; -printk (KERN_INFO "comedi%d: acl7225b: board=%s 0x%04x\n" , dev->minor, +pr_info ("comedi%d: acl7225b: board=%s 0x%04x\n" , dev->minor, this_board->name, iobase);if (!request_region (iobase, iorange,"acl7225b" )) { -printk (KERN_ERR "comedi%d: request_region failed - I/O port conflict\n" , +pr_err ("comedi%d: request_region failed - I/O port conflict\n" , dev->minor);return -EIO ; }
Fixes to this type of issue in the comedi drivers should change the printk's to the dev_printk style.
Hint, the format:
dev_info(dev->class_dev, "whatever\n");
Will automatically provide the "comedi%d: " part of the output.
Regards,
Hartley