diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2013-03-12 01:04:40 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-12 01:06:12 -0400 |
commit | ba06d1e1d3350a38476ea6b7655ba7c047baad67 (patch) | |
tree | 5b5c6964b7aabdf3f872edc8d3c860ad0be14ce0 /drivers/scsi/virtio_scsi.c | |
parent | 289d1054e972b445fe8f7bbcbebf40b1bec37384 (diff) |
virtio-scsi: use pr_err() instead of printk()
Convert the virtio-scsi driver to use pr_err() instead of printk().
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
-rw-r--r-- | drivers/scsi/virtio_scsi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 3449a1f8c656..0f5dd2804ae5 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c | |||
@@ -13,6 +13,8 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
17 | |||
16 | #include <linux/module.h> | 18 | #include <linux/module.h> |
17 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
18 | #include <linux/mempool.h> | 20 | #include <linux/mempool.h> |
@@ -794,8 +796,7 @@ static int __init init(void) | |||
794 | 796 | ||
795 | virtscsi_cmd_cache = KMEM_CACHE(virtio_scsi_cmd, 0); | 797 | virtscsi_cmd_cache = KMEM_CACHE(virtio_scsi_cmd, 0); |
796 | if (!virtscsi_cmd_cache) { | 798 | if (!virtscsi_cmd_cache) { |
797 | printk(KERN_ERR "kmem_cache_create() for " | 799 | pr_err("kmem_cache_create() for virtscsi_cmd_cache failed\n"); |
798 | "virtscsi_cmd_cache failed\n"); | ||
799 | goto error; | 800 | goto error; |
800 | } | 801 | } |
801 | 802 | ||
@@ -804,8 +805,7 @@ static int __init init(void) | |||
804 | mempool_create_slab_pool(VIRTIO_SCSI_MEMPOOL_SZ, | 805 | mempool_create_slab_pool(VIRTIO_SCSI_MEMPOOL_SZ, |
805 | virtscsi_cmd_cache); | 806 | virtscsi_cmd_cache); |
806 | if (!virtscsi_cmd_pool) { | 807 | if (!virtscsi_cmd_pool) { |
807 | printk(KERN_ERR "mempool_create() for" | 808 | pr_err("mempool_create() for virtscsi_cmd_pool failed\n"); |
808 | "virtscsi_cmd_pool failed\n"); | ||
809 | goto error; | 809 | goto error; |
810 | } | 810 | } |
811 | ret = register_virtio_driver(&virtio_scsi_driver); | 811 | ret = register_virtio_driver(&virtio_scsi_driver); |