staging: zram: conventions pr_warning -> pr_warn()
authorSam Hansen <solid.se7en@gmail.com>
Thu, 7 Jun 2012 23:03:47 +0000 (16:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 16:04:14 +0000 (09:04 -0700)
Porting zram to use the pr_warn() function instead of the deprecated
pr_warning().

Signed-off-by: Sam Hansen <solid.se7en@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c

index 2036a901628bec297c4dfc330cf833d12a77a643..706cb625aae90f6652a3ef744843e3500fc07e49 100644 (file)
@@ -645,7 +645,7 @@ static int create_device(struct zram *zram, int device_id)
        zram->disk = alloc_disk(1);
        if (!zram->disk) {
                blk_cleanup_queue(zram->queue);
-               pr_warning("Error allocating disk structure for device %d\n",
+               pr_warn("Error allocating disk structure for device %d\n",
                        device_id);
                ret = -ENOMEM;
                goto out;
@@ -676,7 +676,7 @@ static int create_device(struct zram *zram, int device_id)
        ret = sysfs_create_group(&disk_to_dev(zram->disk)->kobj,
                                &zram_disk_attr_group);
        if (ret < 0) {
-               pr_warning("Error creating sysfs group");
+               pr_warn("Error creating sysfs group");
                goto out;
        }
 
@@ -710,7 +710,7 @@ static int __init zram_init(void)
        int ret, dev_id;
 
        if (num_devices > max_num_devices) {
-               pr_warning("Invalid value for num_devices: %u\n",
+               pr_warn("Invalid value for num_devices: %u\n",
                                num_devices);
                ret = -EINVAL;
                goto out;
@@ -718,7 +718,7 @@ static int __init zram_init(void)
 
        zram_major = register_blkdev(0, "zram");
        if (zram_major <= 0) {
-               pr_warning("Unable to get major number\n");
+               pr_warn("Unable to get major number\n");
                ret = -EBUSY;
                goto out;
        }