From: Pkshih <pkshih@realtek.com>
To: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"kvalo@codeaurora.org" <kvalo@codeaurora.org>,
"andriy.shevchenko@linux.intel.com"
<andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer
Date: Fri, 31 Jul 2020 02:53:50 +0000 [thread overview]
Message-ID: <1596164030.9996.0.camel@realtek.com> (raw)
In-Reply-To: <20200730154026.39901-1-andriy.shevchenko@linux.intel.com>
On Thu, 2020-07-30 at 15:40 +0000, Andy Shevchenko wrote:
> Use %*ph format to print small buffer as hex string.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
> ---
> .../net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
> b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
> index a4940a3842de..0850c5ddad14 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
> @@ -894,11 +894,9 @@ static void halbtc_display_wifi_status(struct btc_coexist
> *btcoexist,
> (low_power ? ", 32k" : ""));
>
> seq_printf(m,
> - "\n %-35s = %02x %02x %02x %02x %02x %02x (0x%x/0x%x)",
> + "\n %-35s = %6ph (0x%x/0x%x)",
> "Power mode cmd(lps/rpwm)",
> - btcoexist->pwr_mode_val[0], btcoexist->pwr_mode_val[1],
> - btcoexist->pwr_mode_val[2], btcoexist->pwr_mode_val[3],
> - btcoexist->pwr_mode_val[4], btcoexist->pwr_mode_val[5],
> + btcoexist->pwr_mode_val,
> btcoexist->bt_info.lps_val,
> btcoexist->bt_info.rpwm_val);
> }
> --
> 2.27.0
>
next prev parent reply other threads:[~2020-07-31 2:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-30 15:40 [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer Andy Shevchenko
2020-07-31 2:53 ` Pkshih [this message]
2020-08-02 14:55 ` Kalle Valo
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=1596164030.9996.0.camel@realtek.com \
--to=pkshih@realtek.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@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 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.