From b68442ebda9c8aca1e1802c169354c8fb31686f1 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Mon, 7 Aug 2023 09:52:57 -0600 Subject: scsi: ppa: Fix compilation with PPA_DEBUG=1 Fix a regression introduced in February 2003 in Linux 2.5.61 by a patch from Alan Cox titled "fix ppa for new scsi".[1] Link: https://lore.kernel.org/lkml/E18jn1B-0005gQ-00@the-village.bc.nu/ Signed-off-by: Alex Henrie Link: https://lore.kernel.org/r/20230807155856.362864-1-alexhenrie24@gmail.com Signed-off-by: Martin K. Petersen --- drivers/scsi/ppa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/scsi/ppa.c') diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c index 909c49541984..d1f6aa256eba 100644 --- a/drivers/scsi/ppa.c +++ b/drivers/scsi/ppa.c @@ -637,7 +637,7 @@ static void ppa_interrupt(struct work_struct *work) case DID_OK: break; case DID_NO_CONNECT: - printk(KERN_DEBUG "ppa: no device at SCSI ID %i\n", cmd->device->target); + printk(KERN_DEBUG "ppa: no device at SCSI ID %i\n", scmd_id(cmd)); break; case DID_BUS_BUSY: printk(KERN_DEBUG "ppa: BUS BUSY - EPP timeout detected\n"); -- cgit v1.2.3