summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-04 22:22:01 -0400
committerDmitry V. Levin <ldv@altlinux.org>2012-04-06 14:39:15 +0000
commit0cbed357ab749fa0cf58e8d72230c2ed92334932 (patch)
treee2750c52d2d1555da6bed03c453c91261822a95e /io.c
parent7ff5ed932568a8049c3ca134da374f64c3e255ce (diff)
downloadstrace-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index a7f6c29..5e697ec 100644
--- a/io.c
+++ b/io.c
@@ -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;