]> granicus.if.org Git - strace/commitdiff
Remove unused QUAL_FAULT code (was used by non-Linux code only).
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 21 Feb 2013 15:17:08 +0000 (16:17 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 21 Feb 2013 15:17:08 +0000 (16:17 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
defs.h
syscall.c

diff --git a/defs.h b/defs.h
index 9b14a2131ce068b5c25b9e018cff99435974603c..35620792010cc377a919bf443a22814fc18cbd71 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -466,11 +466,10 @@ struct tcb {
 #define QUAL_VERBOSE   0x004   /* decode the structures of this syscall */
 #define QUAL_RAW       0x008   /* print all args in hex for this syscall */
 #define QUAL_SIGNAL    0x010   /* report events with this signal */
-#define QUAL_FAULT     0x020   /* report events with this fault */
-#define QUAL_READ      0x040   /* dump data read on this file descriptor */
-#define QUAL_WRITE     0x080   /* dump data written to this file descriptor */
-#define UNDEFINED_SCNO 0x100   /* Used only in tcp->qual_flg */
+#define QUAL_READ      0x020   /* dump data read on this file descriptor */
+#define QUAL_WRITE     0x040   /* dump data written to this file descriptor */
 typedef uint8_t qualbits_t;
+#define UNDEFINED_SCNO 0x100   /* Used only in tcp->qual_flg */
 
 #define DEFAULT_QUAL_FLAGS (QUAL_TRACE | QUAL_ABBREV | QUAL_VERBOSE)
 
index 452ac8efd87d064e1ac621e5af6a158f9d0e976b..5fce9d8ce5d65f89d5e72b957b4e2b407fc0eaed 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -320,7 +320,7 @@ update_personality(struct tcb *tcp, int personality)
 }
 #endif
 
-static int qual_syscall(), qual_signal(), qual_fault(), qual_desc();
+static int qual_syscall(), qual_signal(), qual_desc();
 
 static const struct qual_options {
        int bitflag;
@@ -339,9 +339,6 @@ static const struct qual_options {
        { QUAL_SIGNAL,  "signal",       qual_signal,    "signal"        },
        { QUAL_SIGNAL,  "signals",      qual_signal,    "signal"        },
        { QUAL_SIGNAL,  "s",            qual_signal,    "signal"        },
-       { QUAL_FAULT,   "fault",        qual_fault,     "fault"         },
-       { QUAL_FAULT,   "faults",       qual_fault,     "fault"         },
-       { QUAL_FAULT,   "m",            qual_fault,     "fault"         },
        { QUAL_READ,    "read",         qual_desc,      "descriptor"    },
        { QUAL_READ,    "reads",        qual_desc,      "descriptor"    },
        { QUAL_READ,    "r",            qual_desc,      "descriptor"    },
@@ -444,12 +441,6 @@ qual_signal(const char *s, int bitflag, int not)
        return -1;
 }
 
-static int
-qual_fault(const char *s, int bitflag, int not)
-{
-       return -1;
-}
-
 static int
 qual_desc(const char *s, int bitflag, int not)
 {