From fc58f8820796b8a0aede2a0d64024777a3178d7f Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Fri, 9 Oct 2009 16:53:15 +0100 Subject: [PATCH] scsi_sg - cmd is now ap->a_cmd * the cmd parameter for an ioctl routine is in the ap ioctl_args structure since some time ago, so don't use the inexistant cmd variable for the debug kprintf. * This solves a compilation issue when building with scsi debug. Reported-By: Jan Lentfer --- sys/bus/cam/scsi/scsi_sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/bus/cam/scsi/scsi_sg.c b/sys/bus/cam/scsi/scsi_sg.c index 054e747eeb..b0e576d931 100644 --- a/sys/bus/cam/scsi/scsi_sg.c +++ b/sys/bus/cam/scsi/scsi_sg.c @@ -642,7 +642,7 @@ sgioctl(struct dev_ioctl_args *ap) case LINUX_SG_NEXT_CMD_LEN: default: #ifdef CAMDEBUG - kprintf("sgioctl: rejecting cmd 0x%lx\n", cmd); + kprintf("sgioctl: rejecting cmd 0x%lx\n", ap->a_cmd); #endif error = ENODEV; break; -- 2.41.0