diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2015-01-20 00:24:36 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2015-01-21 00:48:52 +0000 |
commit | 924996a41e54a3ac6bb90a43a8cebbbf6c0e1319 (patch) | |
tree | b97545d97f4ad6542ca17c6832aa9e8ececff27c /io.c | |
parent | c7afb4881f14e44968f3a78ae5988f04ecc66b68 (diff) | |
download | strace-924996a41e54a3ac6bb90a43a8cebbbf6c0e1319.tar.gz |
ioctl: print unrecognized ioctl codes in _IOC(dir,type,nr,size) format
* defs.h (ioctl_print_code): New prototype.
* ioctl.c: Include xlat/ioctl_dirs.h.
(ioctl_print_code): New function.
* io.c (sys_ioctl): Use it.
* xlat/ioctl_dirs.in: New file.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -404,7 +404,7 @@ sys_ioctl(struct tcb *tcp) while ((iop = ioctl_next_match(iop))) tprintf(" or %s", iop->symbol); } else - tprintf("%#lx", tcp->u_arg[1]); + ioctl_print_code(tcp->u_arg[1]); ioctl_decode(tcp, tcp->u_arg[1], tcp->u_arg[2]); } else { |