linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [hcidump PATCHv2 2/2] Decode A2MP Get AMP Assoc rsp
Date: Wed, 16 May 2012 11:12:03 +0300	[thread overview]
Message-ID: <20120516081203.GB28189@x220> (raw)
In-Reply-To: <1336637333-20723-2-git-send-email-Andrei.Emeltchenko.news@gmail.com>

Hi Andrei,

On Thu, May 10, 2012, Andrei Emeltchenko wrote:
> +	printf("Country code: %c%c%c\n", chan_list->country_code[0],
> +	       chan_list->country_code[1], chan_list->country_code[2]);

We still use tabs-only indentation in user space. The above line is
violating this.

> +			printf("Reg ext id %d reg class %d coverage class %d\n",
> +			       triplet->ext.reg_extension_id,
> +			       triplet->ext.reg_class,
> +			       triplet->ext.coverage_class);

Same here.

> +			if (triplet->chans.num_channels == 1)
> +			printf("MAC: %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n",
> +			       tlv->val[0], tlv->val[1], tlv->val[2],
> +			       tlv->val[3], tlv->val[4], tlv->val[5]);

And here. Btw, it also looks like the printf is incorrectly indented
(same indentation as the if).

> +			printf("PAL CAP: %2.2x %2.2x %2.2x %2.2x\n",
> +			       tlv->val[0], tlv->val[1], tlv->val[2],
> +			       tlv->val[3]);

Tabs + spaces here again.

> +			printf("PAL VER: %2.2x Comp ID: %4.4x SubVer: %4.4x\n",
> +			       ver->ver, btohs(ver->company_id),
> +			       btohs(ver->sub_ver));

And here.

Johan

  reply	other threads:[~2012-05-16  8:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08  9:44 [PATCH 1/2] Adds definitions for AMP Assoc data Andrei Emeltchenko
2012-05-08  9:44 ` [PATCH 2/2] Decode A2MP Get AMP Assoc rsp Andrei Emeltchenko
2012-05-08 20:22 ` [PATCH 1/2] Adds definitions for AMP Assoc data Johan Hedberg
2012-05-10  8:08   ` [hcidump PATCHv2 " Andrei Emeltchenko
2012-05-10  8:08     ` [hcidump PATCHv2 2/2] Decode A2MP Get AMP Assoc rsp Andrei Emeltchenko
2012-05-16  8:12       ` Johan Hedberg [this message]
2012-05-16  8:26         ` [PATCH] " Andrei Emeltchenko
2012-05-16  8:30           ` Johan Hedberg
2012-05-16  8:10     ` [hcidump PATCHv2 1/2] Adds definitions for AMP Assoc data Johan Hedberg

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=20120516081203.GB28189@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=Andrei.Emeltchenko.news@gmail.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).