From 5ee8965bd4e0894b0b7c2bf2a25be6ed33775e74 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 31 Jan 2013 09:33:50 -0600 Subject: [PATCH] hcidump: Distinct Control and Browsing AVCTP channels This prints the respective channel of the trafic --- tools/parser/avctp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/parser/avctp.c b/tools/parser/avctp.c index 60a5f6921..58b181dc1 100644 --- a/tools/parser/avctp.c +++ b/tools/parser/avctp.c @@ -60,7 +60,8 @@ void avctp_dump(int level, struct frame *frm, uint16_t psm) hdr = get_u8(frm); pid = get_u16(frm); - printf("AVCTP: %s %s: pt 0x%02x transaction %d pid 0x%04x \n", + printf("AVCTP %s: %s %s: pt 0x%02x transaction %d pid 0x%04x\n", + psm == 23 ? "Control" : "Browsing", hdr & 0x02 ? "Response" : "Command", pt2str(hdr), hdr & 0x0c, hdr >> 4, pid); -- 2.47.3