From 96ca9677c1f979336790a833cccd8d3652fe491f Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Mon, 1 Sep 2003 15:09:06 +0000 Subject: [PATCH] hcidump: print tot and cur correctly (per Cetecom test) --- tools/parser/sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/parser/sdp.c b/tools/parser/sdp.c index 16aeef854..ac72c0be8 100644 --- a/tools/parser/sdp.c +++ b/tools/parser/sdp.c @@ -479,13 +479,13 @@ static inline void ss_req(int level, uint16_t tid, uint16_t len, struct frame *f static inline void ss_rsp(int level, uint16_t tid, uint16_t len, struct frame *frm) { register int i; - uint16_t cur_srv_rec_cnt = get_u16(frm); /* Parse CurrentServiceRecordCount */ uint16_t tot_srv_rec_cnt = get_u16(frm); /* Parse TotalServiceRecordCount */ + uint16_t cur_srv_rec_cnt = get_u16(frm); /* Parse CurrentServiceRecordCount */ printf("SDP SS Rsp: tid 0x%x len 0x%x\n", tid, len); p_indent(++level, 0); - printf("cur 0x%x tot 0x%x", cur_srv_rec_cnt, tot_srv_rec_cnt); + printf("tot 0x%x cur 0x%x", tot_srv_rec_cnt, cur_srv_rec_cnt); /* Parse service record handle(s) */ if (cur_srv_rec_cnt > 0) { -- 2.47.3