monitor: Fix indentation for AVRCP PASS THROUGH commands
PATCH 1/1 monitor: Fix indentation for AVRCP PASS THROUGH commands
Intendation for AVRCP PASS THROUGH commands' decoding fixed.
btmon snippets:
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
---
monitor/avctp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)monitor/avctp.c +2 -2
@@ -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;
Signature · 1 line
1.9.1
Hi Vikram,
Quoted 36 lines · Vikrampal Yadav
Intendation for AVRCP PASS THROUGH commands' decoding fixed.
btmon snippets:
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 --- monitor/avctp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)monitor/avctp.c +2
-3@@ -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; --
Quoted 2 lines
1.9.1
Applied, please make sure the patch format is 50/72 according to the HACKING document.
Signature · 1 line
Luiz Augusto von Dentz
Sure Luiz, Thanks!
Quoted 54 lines
-----Original Message-----
From: Luiz Augusto von Dentz [mailto:[email protected]]
Sent: Wednesday, October 15, 2014 7:16 PM
To: Vikrampal Yadav
Cc: [email protected]; Dmitry Kasatkin; [email protected]
Subject: Re: [PATCH] monitor: Fix indentation for AVRCP PASS THROUGH commandsHi Vikram,
monitor/avctp.c static bool avrcp_passthrough_packet(struct
Quoted 20 lines · Vikrampal Yadav
Intendation for AVRCP PASS THROUGH commands' decoding fixed.
btmon snippets:
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 --- monitor/avctp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)monitor/avctp.c index a4e34c5..4abd18f renamed from monitor/avctp.c +0
-0100644
monitor/avctp.c +0
-0@@ -686,13 +686,13 @@ static bool avrcp_passthrough_packet(struct
avctp_frame*avctp_frame,Quoted 18 lines
monitor/avctp.c +3
-3if (!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; --Quoted 2 lines
1.9.1
Quoted 5 lines
Applied, please make sure the patch format is 50/72 according to the HACKING document.
--
Luiz Augusto von Dentz
Regards,
Vikram