2007-03-29 Vladimir Nadvornik <nadvornik@suse.cz>
Dmitry V. Levin <ldv@altlinux.org>
Trace linux SG_IO ioctl arguments and results.
* scsi.c: New file.
* Makefile.am (strace_SOURCES): Add scsi.c
* defs.h (scsi_ioctl): New function.
* ioctl.c (ioctl_decode): Use scsi_ioctl().
diff --git a/ioctl.c b/ioctl.c
index d99b669..906c71e 100644
--- a/ioctl.c
+++ b/ioctl.c
@@ -152,6 +152,8 @@
#ifdef LINUX
case 'p':
return rtc_ioctl(tcp, code, arg);
+ case 0x22:
+ return scsi_ioctl(tcp, code, arg);
#endif
default:
break;