* [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer
@ 2020-07-30 15:40 Andy Shevchenko
2020-07-31 2:53 ` Pkshih
2020-08-02 14:55 ` Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2020-07-30 15:40 UTC (permalink / raw)
To: Ping-Ke Shih, linux-wireless, Kalle Valo; +Cc: Andy Shevchenko
Use %*ph format to print small buffer as hex string.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer
2020-07-30 15:40 [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer Andy Shevchenko
@ 2020-07-31 2:53 ` Pkshih
2020-08-02 14:55 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Pkshih @ 2020-07-31 2:53 UTC (permalink / raw)
To: linux-wireless, kvalo, andriy.shevchenko
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer
2020-07-30 15:40 [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer Andy Shevchenko
2020-07-31 2:53 ` Pkshih
@ 2020-08-02 14:55 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2020-08-02 14:55 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Ping-Ke Shih, linux-wireless, Andy Shevchenko
Andy Shevchenko <andriy.shevchenko@linux.intel.com> 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>
Patch applied to wireless-drivers-next.git, thanks.
1751a7352b63 rtlwifi: btcoex: use %*ph to print small buffer
--
https://patchwork.kernel.org/patch/11693311/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-02 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-30 15:40 [PATCH v1] rtlwifi: btcoex: use %*ph to print small buffer Andy Shevchenko
2020-07-31 2:53 ` Pkshih
2020-08-02 14:55 ` Kalle Valo
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).