Remove unused QUAL_FAULT code (was used by non-Linux code only).

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-02-21 16:17:08 +01:00
parent a585c9d641
commit c1540fe19d
2 changed files with 4 additions and 14 deletions

7
defs.h
View File

@ -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)

View File

@ -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)
{