aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-12-09 13:39:30 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-12-09 13:39:30 +0000
commit662fd6cd30f3adbfef7c39e2bfcfb1107d96ebbb (patch)
tree95c57a323f3afea09615b918e49988a0817feb97
parenta82beb6911e6ef88e5f83617bfca59985d98a7d8 (diff)
downloadhcidump-662fd6cd30f3adbfef7c39e2bfcfb1107d96ebbb.tar.gz
Display zero condition for filter clearing
-rw-r--r--parser/hci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser/hci.c b/parser/hci.c
index d14f8c5..a1fc1a4 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -770,7 +770,8 @@ static inline void set_event_flt_dump(int level, struct frame *frm)
set_event_flt_cp *cp = frm->ptr;
p_indent(level, frm);
- printf("type %d condition %d\n", cp->flt_type, cp->cond_type);
+ printf("type %d condition %d\n", cp->flt_type,
+ (cp->flt_type == 0) ? 0 : cp->cond_type);
switch (cp->flt_type) {
case FLT_CLEAR_ALL: