diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index d86d5c26061d..4f30a37db63c 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1498,10 +1498,9 @@ static int sg_alloc(struct gendisk *disk, struct scsi_device *scsidp) | |||
1498 | 1498 | ||
1499 | overflow: | 1499 | overflow: |
1500 | write_unlock_irqrestore(&sg_dev_arr_lock, iflags); | 1500 | write_unlock_irqrestore(&sg_dev_arr_lock, iflags); |
1501 | printk(KERN_WARNING | 1501 | sdev_printk(KERN_WARNING, scsidp, |
1502 | "Unable to attach sg device <%d, %d, %d, %d> type=%d, minor " | 1502 | "Unable to attach sg device type=%d, minor " |
1503 | "number exceeds %d\n", scsidp->host->host_no, scsidp->channel, | 1503 | "number exceeds %d\n", scsidp->type, SG_MAX_DEVS - 1); |
1504 | scsidp->id, scsidp->lun, scsidp->type, SG_MAX_DEVS - 1); | ||
1505 | error = -ENODEV; | 1504 | error = -ENODEV; |
1506 | goto out; | 1505 | goto out; |
1507 | } | 1506 | } |
@@ -1567,11 +1566,8 @@ sg_add(struct class_device *cl_dev, struct class_interface *cl_intf) | |||
1567 | } else | 1566 | } else |
1568 | printk(KERN_WARNING "sg_add: sg_sys INvalid\n"); | 1567 | printk(KERN_WARNING "sg_add: sg_sys INvalid\n"); |
1569 | 1568 | ||
1570 | printk(KERN_NOTICE | 1569 | sdev_printk(KERN_NOTICE, scsidp, |
1571 | "Attached scsi generic sg%d at scsi%d, channel" | 1570 | "Attached scsi generic sg%d type %d\n", k,scsidp->type); |
1572 | " %d, id %d, lun %d, type %d\n", k, | ||
1573 | scsidp->host->host_no, scsidp->channel, scsidp->id, | ||
1574 | scsidp->lun, scsidp->type); | ||
1575 | 1571 | ||
1576 | return 0; | 1572 | return 0; |
1577 | 1573 | ||