19 lines
999 B
Diff
19 lines
999 B
Diff
Index: qemu/linux-user/syscall.c
|
|
===================================================================
|
|
--- qemu.orig/linux-user/syscall.c
|
|
+++ qemu/linux-user/syscall.c
|
|
@@ -1950,7 +1950,12 @@ static long do_ioctl(long fd, long cmd,
|
|
ie = ioctl_entries;
|
|
for(;;) {
|
|
if (ie->target_cmd == 0) {
|
|
- gemu_log("Unsupported ioctl: cmd=0x%04lx\n", cmd);
|
|
+ int i;
|
|
+ gemu_log("Unsupported ioctl: cmd=0x%04lx (%x)\n", cmd, (cmd & (TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)) >> TARGET_IOC_SIZESHIFT);
|
|
+ for(i=0;ioctl_entries[i].target_cmd;i++) {
|
|
+ if((ioctl_entries[i].target_cmd & ~(TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)) == (cmd & ~(TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)))
|
|
+ gemu_log("%p\t->\t%s (%x)\n", ioctl_entries[i].host_cmd, ioctl_entries[i].name, (ioctl_entries[i].target_cmd & (TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)) >> TARGET_IOC_SIZESHIFT);
|
|
+ }
|
|
return -ENOSYS;
|
|
}
|
|
if (ie->target_cmd == cmd)
|