summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-01-20 00:24:36 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-01-21 00:48:52 +0000
commit924996a41e54a3ac6bb90a43a8cebbbf6c0e1319 (patch)
treeb97545d97f4ad6542ca17c6832aa9e8ececff27c /io.c
parentc7afb4881f14e44968f3a78ae5988f04ecc66b68 (diff)
downloadstrace-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 87bdbba8c..2a36c000d 100644
--- a/io.c
+++ b/io.c
@@ -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 {