diff options
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | drivers/scsi/sr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 3067e5a7b75e..d68cea753bb2 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c | |||
@@ -360,7 +360,7 @@ static int sr_init_command(struct scsi_cmnd * SCpnt) | |||
360 | } | 360 | } |
361 | 361 | ||
362 | if (s_size != 512 && s_size != 1024 && s_size != 2048) { | 362 | if (s_size != 512 && s_size != 1024 && s_size != 2048) { |
363 | sdev_printk(KERN_ERR, SCpnt->device, "bad sector size %d\n", s_size); | 363 | scmd_printk(KERN_ERR, SCpnt, "bad sector size %d\n", s_size); |
364 | return 0; | 364 | return 0; |
365 | } | 365 | } |
366 | 366 | ||
@@ -385,9 +385,9 @@ static int sr_init_command(struct scsi_cmnd * SCpnt) | |||
385 | size += sg[i].length; | 385 | size += sg[i].length; |
386 | 386 | ||
387 | if (size != SCpnt->request_bufflen && SCpnt->use_sg) { | 387 | if (size != SCpnt->request_bufflen && SCpnt->use_sg) { |
388 | sdev_printk(KERN_ERR, SCpnt->device, | 388 | scmd_printk(KERN_ERR, SCpnt, |
389 | "mismatch count %d, bytes %d\n", | 389 | "mismatch count %d, bytes %d\n", |
390 | size, SCpnt->request_bufflen); | 390 | size, SCpnt->request_bufflen); |
391 | if (SCpnt->request_bufflen > size) | 391 | if (SCpnt->request_bufflen > size) |
392 | SCpnt->request_bufflen = SCpnt->bufflen = size; | 392 | SCpnt->request_bufflen = SCpnt->bufflen = size; |
393 | } | 393 | } |
@@ -398,7 +398,7 @@ static int sr_init_command(struct scsi_cmnd * SCpnt) | |||
398 | */ | 398 | */ |
399 | if (((unsigned int)SCpnt->request->sector % (s_size >> 9)) || | 399 | if (((unsigned int)SCpnt->request->sector % (s_size >> 9)) || |
400 | (SCpnt->request_bufflen % s_size)) { | 400 | (SCpnt->request_bufflen % s_size)) { |
401 | sdev_printk(KERN_NOTICE, SCpnt->device, "unaligned transfer\n"); | 401 | scmd_printk(KERN_NOTICE, SCpnt, "unaligned transfer\n"); |
402 | return 0; | 402 | return 0; |
403 | } | 403 | } |
404 | 404 | ||