From: "Gustavo F. Padovan" <padovan@profusion.mobi>
To: Andre Dieb Martins <andre.dieb@signove.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/6] Add dump for ATT MTU req/resp and notify value
Date: Wed, 9 Feb 2011 12:24:20 -0200 [thread overview]
Message-ID: <20110209142420.GE1995@joana> (raw)
In-Reply-To: <1297259619-10325-1-git-send-email-andre.dieb@signove.com>
Hi Andre,
* Andre Dieb Martins <andre.dieb@signove.com> [2011-02-09 10:53:34 -0300]:
> ---
> parser/att.c | 31 ++++++++++++++++++++++++++++++-
> 1 files changed, 30 insertions(+), 1 deletions(-)
>
> diff --git a/parser/att.c b/parser/att.c
> index b670694..05f9c23 100644
> --- a/parser/att.c
> +++ b/parser/att.c
> @@ -132,12 +132,35 @@ static const char *attop2str(uint8_t op)
> }
> }
>
> +static void att_mtu_req_dump(int level, struct frame *frm)
> +{
> + uint16_t client_rx_mtu = btohs(htons(get_u16(frm)));
> +
> + p_indent(level, frm);
> + printf("client rx mtu %d\n", client_rx_mtu);
> +}
> +
> +static void att_mtu_resp_dump(int level, struct frame *frm)
> +{
> + uint16_t server_rx_mtu = btohs(htons(get_u16(frm)));
> +
> + p_indent(level, frm);
> + printf("server rx mtu %d\n", server_rx_mtu);
> +}
> +
> static void att_handle_notify_dump(int level, struct frame *frm)
> {
> uint16_t handle = btohs(htons(get_u16(frm)));
>
> p_indent(level, frm);
> printf("handle 0x%2.2x\n", handle);
> +
> + p_indent(level, frm);
> + printf("value ");
> + while (frm->len > 0) {
> + printf("0x%.2x ", get_u8(frm));
> + }
> + printf("\n");
> }
>
> void att_dump(int level, struct frame *frm)
> @@ -147,9 +170,15 @@ void att_dump(int level, struct frame *frm)
> op = get_u8(frm);
>
> p_indent(level, frm);
> - printf("Opcode: %d (%s)\n", op, attop2str(op));
> + printf("Opcode %d (%s)\n", op, attop2str(op));
-v2 delivered a blank email to me for this one, so replying here.
Please move this change to the patch that introduced it.
--
Gustavo F. Padovan
http://profusion.mobi
prev parent reply other threads:[~2011-02-09 14:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 13:53 [PATCH 1/6] Add dump for ATT MTU req/resp and notify value Andre Dieb Martins
2011-02-09 13:53 ` [PATCH 2/6] Add ATT error pdu dump Andre Dieb Martins
2011-02-09 13:53 ` [PATCH 3/6] Add ATT find info req/resp dump Andre Dieb Martins
2011-02-09 13:53 ` [PATCH 4/6] Better ATT dump format Andre Dieb Martins
2011-02-09 13:53 ` [PATCH 5/6] Add ATT dump for read req/resp Andre Dieb Martins
2011-02-09 13:53 ` [PATCH 6/6] Add ATT read by type req/resp dump Andre Dieb Martins
2011-02-09 13:57 ` [PATCH 1/6] Add dump for ATT MTU req/resp and notify value André Dieb
2011-02-09 14:24 ` Gustavo F. Padovan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110209142420.GE1995@joana \
--to=padovan@profusion.mobi \
--cc=andre.dieb@signove.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).