aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r--drivers/scsi/scsi.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index a5711d545d71..0be60bba58d3 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -410,9 +410,7 @@ void scsi_log_send(struct scsi_cmnd *cmd)
410 SCSI_LOG_MLQUEUE_BITS); 410 SCSI_LOG_MLQUEUE_BITS);
411 if (level > 1) { 411 if (level > 1) {
412 sdev = cmd->device; 412 sdev = cmd->device;
413 printk(KERN_INFO "scsi <%d:%d:%d:%d> send ", 413 sdev_printk(KERN_INFO, sdev, "send ");
414 sdev->host->host_no, sdev->channel, sdev->id,
415 sdev->lun);
416 if (level > 2) 414 if (level > 2)
417 printk("0x%p ", cmd); 415 printk("0x%p ", cmd);
418 /* 416 /*
@@ -456,9 +454,7 @@ void scsi_log_completion(struct scsi_cmnd *cmd, int disposition)
456 if (((level > 0) && (cmd->result || disposition != SUCCESS)) || 454 if (((level > 0) && (cmd->result || disposition != SUCCESS)) ||
457 (level > 1)) { 455 (level > 1)) {
458 sdev = cmd->device; 456 sdev = cmd->device;
459 printk(KERN_INFO "scsi <%d:%d:%d:%d> done ", 457 sdev_printk(KERN_INFO, sdev, "done ");
460 sdev->host->host_no, sdev->channel, sdev->id,
461 sdev->lun);
462 if (level > 2) 458 if (level > 2)
463 printk("0x%p ", cmd); 459 printk("0x%p ", cmd);
464 /* 460 /*
@@ -810,9 +806,9 @@ static void scsi_softirq(struct softirq_action *h)
810 disposition = scsi_decide_disposition(cmd); 806 disposition = scsi_decide_disposition(cmd);
811 if (disposition != SUCCESS && 807 if (disposition != SUCCESS &&
812 time_before(cmd->jiffies_at_alloc + wait_for, jiffies)) { 808 time_before(cmd->jiffies_at_alloc + wait_for, jiffies)) {
813 dev_printk(KERN_ERR, &cmd->device->sdev_gendev, 809 sdev_printk(KERN_ERR, cmd->device,
814 "timing out command, waited %lus\n", 810 "timing out command, waited %lus\n",
815 wait_for/HZ); 811 wait_for/HZ);
816 disposition = SUCCESS; 812 disposition = SUCCESS;
817 } 813 }
818 814
@@ -893,8 +889,9 @@ void scsi_finish_command(struct scsi_cmnd *cmd)
893 if (SCSI_SENSE_VALID(cmd)) 889 if (SCSI_SENSE_VALID(cmd))
894 cmd->result |= (DRIVER_SENSE << 24); 890 cmd->result |= (DRIVER_SENSE << 24);
895 891
896 SCSI_LOG_MLCOMPLETE(4, printk("Notifying upper driver of completion " 892 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev,
897 "for device %d %x\n", sdev->id, cmd->result)); 893 "Notifying upper driver of completion "
894 "(result %x)\n", cmd->result));
898 895
899 /* 896 /*
900 * We can get here with use_sg=0, causing a panic in the upper level 897 * We can get here with use_sg=0, causing a panic in the upper level
@@ -970,10 +967,9 @@ void scsi_adjust_queue_depth(struct scsi_device *sdev, int tagged, int tags)
970 sdev->simple_tags = 1; 967 sdev->simple_tags = 1;
971 break; 968 break;
972 default: 969 default:
973 printk(KERN_WARNING "(scsi%d:%d:%d:%d) " 970 sdev_printk(KERN_WARNING, sdev,
974 "scsi_adjust_queue_depth, bad queue type, " 971 "scsi_adjust_queue_depth, bad queue type, "
975 "disabled\n", sdev->host->host_no, 972 "disabled\n");
976 sdev->channel, sdev->id, sdev->lun);
977 case 0: 973 case 0:
978 sdev->ordered_tags = sdev->simple_tags = 0; 974 sdev->ordered_tags = sdev->simple_tags = 0;
979 sdev->queue_depth = tags; 975 sdev->queue_depth = tags;