All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 2/2] ath9k: Fix signedness in a MCI debug message
Date: Wed, 27 Jun 2012 16:48:35 +0200	[thread overview]
Message-ID: <4FEB1D43.7080706@openwrt.org> (raw)
In-Reply-To: <1340807427-5774-2-git-send-email-mohammed@qca.qualcomm.com>

On 2012-06-27 4:30 PM, Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
> 
> seems i got a message like this
> ath: phy0: BT_Status_Update: is_link=0, linkId=2,
> state=1, SEQ=-2085766476 initially.
> 
> Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
> ---
>  drivers/net/wireless/ath/ath9k/mci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/mci.c b/drivers/net/wireless/ath/ath9k/mci.c
> index c40e568..64cc782 100644
> --- a/drivers/net/wireless/ath/ath9k/mci.c
> +++ b/drivers/net/wireless/ath/ath9k/mci.c
> @@ -348,7 +348,7 @@ static void ath_mci_msg(struct ath_softc *sc, u8 opcode, u8 *rx_payload)
>  
>  		seq_num = *((u32 *)(rx_payload + 12));
>  		ath_dbg(common, MCI,
> -			"BT_Status_Update: is_link=%d, linkId=%d, state=%d, SEQ=%d\n",
> +			"BT_Status_Update: is_link=%d, linkId=%d, state=%d, SEQ=%u\n",
>  			profile_status.is_link, profile_status.conn_handle,
>  			profile_status.is_critical, seq_num);
What about endian here? Also, wouldn't it be better to have a struct for
the rx payload data with proper endian annotation instead of using the
weird way of dereferencing the rx_payload pointer?

- Felix

WARNING: multiple messages have this Message-ID (diff)
From: Felix Fietkau <nbd@openwrt.org>
To: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org,
	Rodriguez Luis <rodrigue@qca.qualcomm.com>,
	ath9k-devel@lists.ath9k.org,
	Rajkumar Manoharan <rmanohar@qca.qualcomm.com>,
	Bala Shanmugam <bkamatch@qca.qualcomm.com>,
	Senthil Balasubramanian <senthilb@qca.qualcomm.com>
Subject: Re: [PATCH 2/2] ath9k: Fix signedness in a MCI debug message
Date: Wed, 27 Jun 2012 16:48:35 +0200	[thread overview]
Message-ID: <4FEB1D43.7080706@openwrt.org> (raw)
In-Reply-To: <1340807427-5774-2-git-send-email-mohammed@qca.qualcomm.com>

On 2012-06-27 4:30 PM, Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
> 
> seems i got a message like this
> ath: phy0: BT_Status_Update: is_link=0, linkId=2,
> state=1, SEQ=-2085766476 initially.
> 
> Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
> ---
>  drivers/net/wireless/ath/ath9k/mci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/mci.c b/drivers/net/wireless/ath/ath9k/mci.c
> index c40e568..64cc782 100644
> --- a/drivers/net/wireless/ath/ath9k/mci.c
> +++ b/drivers/net/wireless/ath/ath9k/mci.c
> @@ -348,7 +348,7 @@ static void ath_mci_msg(struct ath_softc *sc, u8 opcode, u8 *rx_payload)
>  
>  		seq_num = *((u32 *)(rx_payload + 12));
>  		ath_dbg(common, MCI,
> -			"BT_Status_Update: is_link=%d, linkId=%d, state=%d, SEQ=%d\n",
> +			"BT_Status_Update: is_link=%d, linkId=%d, state=%d, SEQ=%u\n",
>  			profile_status.is_link, profile_status.conn_handle,
>  			profile_status.is_critical, seq_num);
What about endian here? Also, wouldn't it be better to have a struct for
the rx payload data with proper endian annotation instead of using the
weird way of dereferencing the rx_payload pointer?

- Felix

  reply	other threads:[~2012-06-27 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27 14:30 [ath9k-devel] [PATCH 1/2] ath9k_hw: make use of the wrapper to check for MCI init Mohammed Shafi Shajakhan
2012-06-27 14:30 ` Mohammed Shafi Shajakhan
2012-06-27 14:30 ` [ath9k-devel] [PATCH 2/2] ath9k: Fix signedness in a MCI debug message Mohammed Shafi Shajakhan
2012-06-27 14:30   ` Mohammed Shafi Shajakhan
2012-06-27 14:48   ` Felix Fietkau [this message]
2012-06-27 14:48     ` Felix Fietkau
2012-06-27 15:00     ` [ath9k-devel] " Mohammed Shafi Shajakhan
2012-06-27 15:00       ` Mohammed Shafi Shajakhan
2012-06-27 15:14       ` [ath9k-devel] " Mohammed Shafi Shajakhan
2012-06-27 15:14         ` Mohammed Shafi Shajakhan

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=4FEB1D43.7080706@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=ath9k-devel@lists.ath9k.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.