polachok's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b235ad6
)
scsi_sg - cmd is now ap->a_cmd
author
Alex Hornung <ahornung@gmail.com>
Fri, 9 Oct 2009 15:53:15 +0000 (16:53 +0100)
committer
Alex Hornung <ahornung@gmail.com>
Fri, 9 Oct 2009 15:53:15 +0000 (16:53 +0100)
* 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
patch
|
blob
|
blame
|
history
diff --git
a/sys/bus/cam/scsi/scsi_sg.c
b/sys/bus/cam/scsi/scsi_sg.c
index
054e747
..
b0e576d
100644
(file)
--- 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;