diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-04 22:22:01 -0400 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2012-04-06 14:39:15 +0000 |
commit | 0cbed357ab749fa0cf58e8d72230c2ed92334932 (patch) | |
tree | e2750c52d2d1555da6bed03c453c91261822a95e /io.c | |
parent | 7ff5ed932568a8049c3ca134da374f64c3e255ce (diff) | |
download | strace-0cbed357ab749fa0cf58e8d72230c2ed92334932.tar.gz strace-0cbed357ab749fa0cf58e8d72230c2ed92334932.tar.bz2 strace-0cbed357ab749fa0cf58e8d72230c2ed92334932.tar.xz |
Decode mtd ioctls
I got tired of figuring out mtd structures (which show up a lot
in the embedded space), so add decoders for those ioctls.
* defs.h (mtd_ioctl): New prototype.
(print_loff_t): Likewise.
* io.c (print_loff_t): Delete static keyword
* ioctl.c (ioctl_decode): Call mtd_ioctl when code is 'M'.
* Makefile.am (strace_SOURCES): Add mtd.c.
(EXTRA_DIST): Add linux/mtd-abi.h.
* mtd.c: New file.
* linux/mtd-abi.h: New file.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -261,7 +261,7 @@ sys_sendfile(struct tcb *tcp) return 0; } -static void +void print_loff_t(struct tcb *tcp, long addr) { loff_t offset; |