Return-Path: MIME-Version: 1.0 In-Reply-To: <1423826283-19270-1-git-send-email-gowtham.ab@samsung.com> References: <1423826283-19270-1-git-send-email-gowtham.ab@samsung.com> Date: Mon, 16 Feb 2015 14:30:28 +0200 Message-ID: Subject: Re: [PATCH] monitor/l2cap: Add log msg for read_blob_rsp From: Luiz Augusto von Dentz To: Gowtham Anandha Babu Cc: "linux-bluetooth@vger.kernel.org" , Bharat Panda , cpgs@samsung.com Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Gowtham, On Fri, Feb 13, 2015 at 1:18 PM, Gowtham Anandha Babu wrote: >> ACL Data RX: Handle 71 flags 0x02 dlen 27 [hci0] 79.680052 > ATT: Read Blob Response (0x0d) len 22 > Part of Attribute Value: > 11 22 33 44 55 66 77 88 99 00 12 34 56 78 90 12 ."3DUfw....4Vx.. > 34 56 78 90 12 34 4Vx..4 > --- > monitor/l2cap.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/monitor/l2cap.c b/monitor/l2cap.c > index 0030a4c..d58c14f 100644 > --- a/monitor/l2cap.c > +++ b/monitor/l2cap.c > @@ -2198,6 +2198,7 @@ static void att_read_blob_req(const struct l2cap_frame *frame) > > static void att_read_blob_rsp(const struct l2cap_frame *frame) > { > + print_field("Part of Attribute Value:"); > packet_hexdump(frame->data, frame->size); > } > > -- > 1.9.1 I would use print_hex_field("Value", frame->data, frame->size); like in att_read_rsp if you really want a label. -- Luiz Augusto von Dentz