Skip to content

Commit 52eaa79

Browse files
Hannes ReineckeJames Bottomley
authored andcommitted
scsi: ia64: simscsi: use request tag instead of serial_number
Use the request tag for logging instead of the scsi command serial number. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [jejb: fix commit oneliner] Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent 0015437 commit 52eaa79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch/ia64/hp/sim/simscsi.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ simscsi_interrupt (unsigned long val)
105105
atomic_dec(&num_reqs);
106106
queue[rd].sc = NULL;
107107
if (DBG)
108-
printk("simscsi_interrupt: done with %ld\n", sc->serial_number);
108+
printk("simscsi_interrupt: done with %u\n",
109+
sc->request->tag);
109110
(*sc->scsi_done)(sc);
110111
rd = (rd + 1) % SIMSCSI_REQ_QUEUE_LEN;
111112
}
@@ -214,8 +215,8 @@ simscsi_queuecommand_lck (struct scsi_cmnd *sc, void (*done)(struct scsi_cmnd *)
214215
register long sp asm ("sp");
215216

216217
if (DBG)
217-
printk("simscsi_queuecommand: target=%d,cmnd=%u,sc=%lu,sp=%lx,done=%p\n",
218-
target_id, sc->cmnd[0], sc->serial_number, sp, done);
218+
printk("simscsi_queuecommand: target=%d,cmnd=%u,sc=%u,sp=%lx,done=%p\n",
219+
target_id, sc->cmnd[0], sc->request->tag, sp, done);
219220
#endif
220221

221222
sc->result = DID_BAD_TARGET << 16;

0 commit comments

Comments
 (0)