Merge tag 'memblock-v5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt...
[linux-2.6-microblaze.git] / drivers / block / nbd.c
index f5d098a..2a709da 100644 (file)
@@ -11,6 +11,8 @@
  * (part of code stolen from loop.c)
  */
 
+#define pr_fmt(fmt) "nbd: " fmt
+
 #include <linux/major.h>
 
 #include <linux/blkdev.h>
@@ -1950,7 +1952,7 @@ again:
                             test_bit(NBD_DISCONNECT_REQUESTED, &nbd->flags)) ||
                            !refcount_inc_not_zero(&nbd->refs)) {
                                mutex_unlock(&nbd_index_mutex);
-                               pr_err("nbd: device at index %d is going down\n",
+                               pr_err("device at index %d is going down\n",
                                        index);
                                return -EINVAL;
                        }
@@ -1961,7 +1963,7 @@ again:
        if (!nbd) {
                nbd = nbd_dev_add(index, 2);
                if (IS_ERR(nbd)) {
-                       pr_err("nbd: failed to add new device\n");
+                       pr_err("failed to add new device\n");
                        return PTR_ERR(nbd);
                }
        }