[PATCH 03/49] drivers/staging/b3dfg: Convert printks to pr_<level>
Joe Perches
joe at perches.com
Thu Oct 15 01:53:47 UTC 2009
Signed-off-by: Joe Perches <joe at perches.com>
---
drivers/staging/b3dfg/b3dfg.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/b3dfg/b3dfg.c b/drivers/staging/b3dfg/b3dfg.c
index 94c5d27..bc60d53 100644
--- a/drivers/staging/b3dfg/b3dfg.c
+++ b/drivers/staging/b3dfg/b3dfg.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
@@ -1071,12 +1073,11 @@ static int __init b3dfg_module_init(void)
int r;
if (b3dfg_nbuf < 2) {
- printk(KERN_ERR DRIVER_NAME
- ": buffer_count is out of range (must be >= 2)");
+ pr_err("buffer_count is out of range (must be >= 2)");
return -EINVAL;
}
- printk(KERN_INFO DRIVER_NAME ": loaded\n");
+ pr_info("loaded\n");
b3dfg_class = class_create(THIS_MODULE, DRIVER_NAME);
if (IS_ERR(b3dfg_class))
@@ -1101,7 +1102,7 @@ err1:
static void __exit b3dfg_module_exit(void)
{
- printk(KERN_INFO DRIVER_NAME ": unloaded\n");
+ pr_info("unloaded\n");
pci_unregister_driver(&b3dfg_driver);
unregister_chrdev_region(b3dfg_devt, B3DFG_MAX_DEVS);
class_destroy(b3dfg_class);
--
1.6.5.rc3.dirty
More information about the devel
mailing list