summaryrefslogtreecommitdiff
path: root/tools/parser
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-01-31 09:33:50 -0600
committerJohan Hedberg <johan.hedberg@intel.com>2013-01-31 14:37:45 -0600
commit5ee8965bd4e0894b0b7c2bf2a25be6ed33775e74 (patch)
tree6fabf78d85dfa8d790e8dc930f560ad323b3e271 /tools/parser
parent9c12c5b8d050a6c1b74067c0d1d8feee399d1bfb (diff)
downloadbluez-5ee8965bd4e0894b0b7c2bf2a25be6ed33775e74.tar.gz
hcidump: Distinct Control and Browsing AVCTP channels
This prints the respective channel of the trafic
Diffstat (limited to 'tools/parser')
-rw-r--r--tools/parser/avctp.c3
1 files changed, 2 insertions, 1 deletions
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);