summaryrefslogtreecommitdiff
path: root/monitor/avctp.c
diff options
context:
space:
mode:
authorVikrampal Yadav <vikram.pal@samsung.com>2014-10-15 19:11:49 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-10-15 15:35:57 +0200
commit8327001e6f0fa8f0acdc895c5ea7fe85a2af806b (patch)
tree489ef97ea253683318ae477dc7dd7dab38ea102b /monitor/avctp.c
parent9c53fe3df3ef9eaf6465a673ed27691bea45d911 (diff)
downloadbluez-8327001e6f0fa8f0acdc895c5ea7fe85a2af806b.tar.gz
monitor: Fix AVRCP PASS THROUGH parser
This fixes the intendaition for AVRCP PASS THROUGH commands: Channel: 66 len 14 [PSM 23 mode 0] {chan 3} AVCTP Control: Command: type 0x00 label 0 PID 0x110e AV/C: Status: address 0x48 opcode 0x7c Subunit: Panel Opcode: Passthrough Operation: 0x44 (PLAY Pressed) Lenght: 0x00
Diffstat (limited to 'monitor/avctp.c')
-rw-r--r--monitor/avctp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/avctp.c b/monitor/avctp.c
index a4e34c5ee..4abd18f94 100644
--- a/monitor/avctp.c
+++ b/monitor/avctp.c
@@ -686,13 +686,13 @@ static bool avrcp_passthrough_packet(struct avctp_frame *avctp_frame,
if (!l2cap_frame_get_u8(frame, &op))
return false;
- print_field("%*cOperation: 0x%02x (%s %s)", (indent - 2), ' ', op,
+ print_field("%*cOperation: 0x%02x (%s %s)", (indent - 8), ' ', op,
op2str(op), op & 0x80 ? "Released" : "Pressed");
if (!l2cap_frame_get_u8(frame, &len))
return false;
- print_field("%*cLength: 0x%02x", (indent - 2), ' ', len);
+ print_field("%*cLength: 0x%02x", (indent - 8), ' ', len);
packet_hexdump(frame->data, frame->size);
return true;