Commit 45422e74 authored by Asai Thambi S P's avatar Asai Thambi S P Committed by Jens Axboe

mtip32xx: Change printk to pr_xxxx

Changed printk to be compliant with latest style changes
Signed-off-by: default avatarAsai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: default avatarSelvan Mani <smani@micron.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b62868e5
...@@ -4213,12 +4213,12 @@ static int __init mtip_init(void) ...@@ -4213,12 +4213,12 @@ static int __init mtip_init(void)
{ {
int error; int error;
printk(KERN_INFO MTIP_DRV_NAME " Version " MTIP_DRV_VERSION "\n"); pr_info(MTIP_DRV_NAME " Version " MTIP_DRV_VERSION "\n");
/* Allocate a major block device number to use with this driver. */ /* Allocate a major block device number to use with this driver. */
error = register_blkdev(0, MTIP_DRV_NAME); error = register_blkdev(0, MTIP_DRV_NAME);
if (error <= 0) { if (error <= 0) {
printk(KERN_ERR "Unable to register block device (%d)\n", pr_err("Unable to register block device (%d)\n",
error); error);
return -EBUSY; return -EBUSY;
} }
...@@ -4227,7 +4227,7 @@ static int __init mtip_init(void) ...@@ -4227,7 +4227,7 @@ static int __init mtip_init(void)
if (!dfs_parent) { if (!dfs_parent) {
dfs_parent = debugfs_create_dir("rssd", NULL); dfs_parent = debugfs_create_dir("rssd", NULL);
if (IS_ERR_OR_NULL(dfs_parent)) { if (IS_ERR_OR_NULL(dfs_parent)) {
printk(KERN_WARNING "Error creating debugfs parent\n"); pr_warn("Error creating debugfs parent\n");
dfs_parent = NULL; dfs_parent = NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment