[PATCH v2] decode mtd ioctls

Mike Frysinger vapier at gentoo.org
Wed Apr 4 02:22:48 UTC 2012


On Tuesday 03 April 2012 19:11:32 Dmitry V. Levin wrote:
> On Tue, Apr 03, 2012 at 02:24:33AM -0400, Mike Frysinger wrote:
> > 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.
> > * mtd.c: New file.
> 
> I've got a system where it doesn't compile because mtd/mtd-user.h
> is not installed there:
> 
> mtd.c:30:26: fatal error: mtd/mtd-user.h: No such file or directory
> 
> One may argue that the system must provide this file, but I'd rather
> like to have a traditional workaround for such cases. ;)

should i just copy the header locally ?  or add a mtd-user.h header check and 
disable the code if it's not found ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120403/c03201c8/attachment.bin>


More information about the Strace-devel mailing list