From 03ec538a458d2a16b637a29c020f8289d909531c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 9 Dec 2005 13:39:30 +0000 Subject: [PATCH] hcidump: Display zero condition for filter clearing --- tools/parser/hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/parser/hci.c b/tools/parser/hci.c index d14f8c54f..a1fc1a4a9 100644 --- a/tools/parser/hci.c +++ b/tools/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: -- 2.47.3