diff options
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
| -rw-r--r-- | drivers/scsi/scsi_debug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 01d11a01ffbf..27c633f55794 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
| @@ -1753,7 +1753,7 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) | |||
| 1753 | open_devip = sdebug_device_create(sdbg_host, GFP_ATOMIC); | 1753 | open_devip = sdebug_device_create(sdbg_host, GFP_ATOMIC); |
| 1754 | if (!open_devip) { | 1754 | if (!open_devip) { |
| 1755 | printk(KERN_ERR "%s: out of memory at line %d\n", | 1755 | printk(KERN_ERR "%s: out of memory at line %d\n", |
| 1756 | __FUNCTION__, __LINE__); | 1756 | __func__, __LINE__); |
| 1757 | return NULL; | 1757 | return NULL; |
| 1758 | } | 1758 | } |
| 1759 | } | 1759 | } |
| @@ -2656,7 +2656,7 @@ static int sdebug_add_adapter(void) | |||
| 2656 | sdbg_host = kzalloc(sizeof(*sdbg_host),GFP_KERNEL); | 2656 | sdbg_host = kzalloc(sizeof(*sdbg_host),GFP_KERNEL); |
| 2657 | if (NULL == sdbg_host) { | 2657 | if (NULL == sdbg_host) { |
| 2658 | printk(KERN_ERR "%s: out of memory at line %d\n", | 2658 | printk(KERN_ERR "%s: out of memory at line %d\n", |
| 2659 | __FUNCTION__, __LINE__); | 2659 | __func__, __LINE__); |
| 2660 | return -ENOMEM; | 2660 | return -ENOMEM; |
| 2661 | } | 2661 | } |
| 2662 | 2662 | ||
| @@ -2667,7 +2667,7 @@ static int sdebug_add_adapter(void) | |||
| 2667 | sdbg_devinfo = sdebug_device_create(sdbg_host, GFP_KERNEL); | 2667 | sdbg_devinfo = sdebug_device_create(sdbg_host, GFP_KERNEL); |
| 2668 | if (!sdbg_devinfo) { | 2668 | if (!sdbg_devinfo) { |
| 2669 | printk(KERN_ERR "%s: out of memory at line %d\n", | 2669 | printk(KERN_ERR "%s: out of memory at line %d\n", |
| 2670 | __FUNCTION__, __LINE__); | 2670 | __func__, __LINE__); |
| 2671 | error = -ENOMEM; | 2671 | error = -ENOMEM; |
| 2672 | goto clean; | 2672 | goto clean; |
| 2673 | } | 2673 | } |
| @@ -2987,7 +2987,7 @@ static int sdebug_driver_probe(struct device * dev) | |||
| 2987 | 2987 | ||
| 2988 | hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); | 2988 | hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); |
| 2989 | if (NULL == hpnt) { | 2989 | if (NULL == hpnt) { |
| 2990 | printk(KERN_ERR "%s: scsi_register failed\n", __FUNCTION__); | 2990 | printk(KERN_ERR "%s: scsi_register failed\n", __func__); |
| 2991 | error = -ENODEV; | 2991 | error = -ENODEV; |
| 2992 | return error; | 2992 | return error; |
| 2993 | } | 2993 | } |
| @@ -3002,7 +3002,7 @@ static int sdebug_driver_probe(struct device * dev) | |||
| 3002 | 3002 | ||
| 3003 | error = scsi_add_host(hpnt, &sdbg_host->dev); | 3003 | error = scsi_add_host(hpnt, &sdbg_host->dev); |
| 3004 | if (error) { | 3004 | if (error) { |
| 3005 | printk(KERN_ERR "%s: scsi_add_host failed\n", __FUNCTION__); | 3005 | printk(KERN_ERR "%s: scsi_add_host failed\n", __func__); |
| 3006 | error = -ENODEV; | 3006 | error = -ENODEV; |
| 3007 | scsi_host_put(hpnt); | 3007 | scsi_host_put(hpnt); |
| 3008 | } else | 3008 | } else |
| @@ -3021,7 +3021,7 @@ static int sdebug_driver_remove(struct device * dev) | |||
| 3021 | 3021 | ||
| 3022 | if (!sdbg_host) { | 3022 | if (!sdbg_host) { |
| 3023 | printk(KERN_ERR "%s: Unable to locate host info\n", | 3023 | printk(KERN_ERR "%s: Unable to locate host info\n", |
| 3024 | __FUNCTION__); | 3024 | __func__); |
| 3025 | return -ENODEV; | 3025 | return -ENODEV; |
| 3026 | } | 3026 | } |
| 3027 | 3027 | ||
