Replace hard coded function name register_blkdev with __func__, to
improve robustness and to conform to the Linux kernel coding
style. Issue found using checkpatch.
Signed-off-by: Keyur Patel <iamkeyur96@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
                }
 
                if (index == 0) {
-                       printk("register_blkdev: failed to get major for %s\n",
-                              name);
+                       printk("%s: failed to get major for %s\n",
+                              __func__, name);
                        ret = -EBUSY;
                        goto out;
                }
        }
 
        if (major >= BLKDEV_MAJOR_MAX) {
-               pr_err("register_blkdev: major requested (%u) is greater than the maximum (%u) for %s\n",
-                      major, BLKDEV_MAJOR_MAX-1, name);
+               pr_err("%s: major requested (%u) is greater than the maximum (%u) for %s\n",
+                      __func__, major, BLKDEV_MAJOR_MAX-1, name);
 
                ret = -EINVAL;
                goto out;