mirror of https://gitee.com/openkylin/linux.git
rtlwifi: btcoexist: re-use %*ph specifier to hexdump
Instead of printing each byte from the given buffer the code is converted to use %*ph specifier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
073d72f963
commit
68ec581011
|
@ -3356,9 +3356,8 @@ void ex_halbtc8192e2ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
"Dot11 channel / HsMode(HsChnl)",
|
"Dot11 channel / HsMode(HsChnl)",
|
||||||
wifi_dot11_chnl, bt_hson, wifi_hs_chnl);
|
wifi_dot11_chnl, bt_hson, wifi_hs_chnl);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %02x %02x %02x ",
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %3ph ",
|
||||||
"H2C Wifi inform bt chnl Info", coex_dm->wifi_chnl_info[0],
|
"H2C Wifi inform bt chnl Info", coex_dm->wifi_chnl_info);
|
||||||
coex_dm->wifi_chnl_info[1], coex_dm->wifi_chnl_info[2]);
|
|
||||||
|
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifirssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifirssi);
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
||||||
|
@ -3409,17 +3408,9 @@ void ex_halbtc8192e2ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
for (i = 0; i < BT_INFO_SRC_8192E_2ANT_MAX; i++) {
|
for (i = 0; i < BT_INFO_SRC_8192E_2ANT_MAX; i++) {
|
||||||
if (coex_sta->bt_info_c2h_cnt[i]) {
|
if (coex_sta->bt_info_c2h_cnt[i]) {
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x ",
|
"\r\n %-35s = %7ph(%d)",
|
||||||
GLBtInfoSrc8192e2Ant[i],
|
GLBtInfoSrc8192e2Ant[i],
|
||||||
coex_sta->bt_info_c2h[i][0],
|
coex_sta->bt_info_c2h[i],
|
||||||
coex_sta->bt_info_c2h[i][1],
|
|
||||||
coex_sta->bt_info_c2h[i][2],
|
|
||||||
coex_sta->bt_info_c2h[i][3]);
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
|
||||||
"%02x %02x %02x(%d)",
|
|
||||||
coex_sta->bt_info_c2h[i][4],
|
|
||||||
coex_sta->bt_info_c2h[i][5],
|
|
||||||
coex_sta->bt_info_c2h[i][6],
|
|
||||||
coex_sta->bt_info_c2h_cnt[i]);
|
coex_sta->bt_info_c2h_cnt[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3453,10 +3444,8 @@ void ex_halbtc8192e2ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
|
|
||||||
ps_tdma_case = coex_dm->cur_ps_tdma;
|
ps_tdma_case = coex_dm->cur_ps_tdma;
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x case-%d (auto:%d)",
|
"\r\n %-35s = %5ph case-%d (auto:%d)",
|
||||||
"PS TDMA", coex_dm->ps_tdma_para[0],
|
"PS TDMA", coex_dm->ps_tdma_para,
|
||||||
coex_dm->ps_tdma_para[1], coex_dm->ps_tdma_para[2],
|
|
||||||
coex_dm->ps_tdma_para[3], coex_dm->ps_tdma_para[4],
|
|
||||||
ps_tdma_case, coex_dm->auto_tdma_adjust);
|
ps_tdma_case, coex_dm->auto_tdma_adjust);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %d/ %d ",
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %d/ %d ",
|
||||||
|
|
|
@ -2457,10 +2457,9 @@ void ex_halbtc8723b1ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
"Dot11 channel / HsChnl(HsMode)",
|
"Dot11 channel / HsChnl(HsMode)",
|
||||||
wifi_dot11_chnl, wifi_hs_chnl, bt_hs_on);
|
wifi_dot11_chnl, wifi_hs_chnl, bt_hs_on);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %02x %02x %02x ",
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %3ph ",
|
||||||
"H2C Wifi inform bt chnl Info",
|
"H2C Wifi inform bt chnl Info",
|
||||||
coex_dm->wifi_chnl_info[0], coex_dm->wifi_chnl_info[1],
|
coex_dm->wifi_chnl_info);
|
||||||
coex_dm->wifi_chnl_info[2]);
|
|
||||||
|
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
||||||
|
@ -2525,15 +2524,9 @@ void ex_halbtc8723b1ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
for (i = 0; i < BT_INFO_SRC_8723B_1ANT_MAX; i++) {
|
for (i = 0; i < BT_INFO_SRC_8723B_1ANT_MAX; i++) {
|
||||||
if (coex_sta->bt_info_c2h_cnt[i]) {
|
if (coex_sta->bt_info_c2h_cnt[i]) {
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x %02x %02x(%d)",
|
"\r\n %-35s = %7ph(%d)",
|
||||||
GLBtInfoSrc8723b1Ant[i],
|
GLBtInfoSrc8723b1Ant[i],
|
||||||
coex_sta->bt_info_c2h[i][0],
|
coex_sta->bt_info_c2h[i],
|
||||||
coex_sta->bt_info_c2h[i][1],
|
|
||||||
coex_sta->bt_info_c2h[i][2],
|
|
||||||
coex_sta->bt_info_c2h[i][3],
|
|
||||||
coex_sta->bt_info_c2h[i][4],
|
|
||||||
coex_sta->bt_info_c2h[i][5],
|
|
||||||
coex_sta->bt_info_c2h[i][6],
|
|
||||||
coex_sta->bt_info_c2h_cnt[i]);
|
coex_sta->bt_info_c2h_cnt[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2569,10 +2562,8 @@ void ex_halbtc8723b1ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
|
|
||||||
pstdmacase = coex_dm->cur_ps_tdma;
|
pstdmacase = coex_dm->cur_ps_tdma;
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x case-%d (auto:%d)",
|
"\r\n %-35s = %5ph case-%d (auto:%d)",
|
||||||
"PS TDMA", coex_dm->ps_tdma_para[0],
|
"PS TDMA", coex_dm->ps_tdma_para,
|
||||||
coex_dm->ps_tdma_para[1], coex_dm->ps_tdma_para[2],
|
|
||||||
coex_dm->ps_tdma_para[3], coex_dm->ps_tdma_para[4],
|
|
||||||
pstdmacase, coex_dm->auto_tdma_adjust);
|
pstdmacase, coex_dm->auto_tdma_adjust);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %d ",
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %d ",
|
||||||
|
|
|
@ -3215,9 +3215,8 @@ void ex_btc8723b2ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
"Dot11 channel / HsChnl(HsMode)",
|
"Dot11 channel / HsChnl(HsMode)",
|
||||||
wifi_dot11_chnl, wifi_hs_chnl, bt_hs_on);
|
wifi_dot11_chnl, wifi_hs_chnl, bt_hs_on);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %02x %02x %02x ",
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %3ph ",
|
||||||
"H2C Wifi inform bt chnl Info", coex_dm->wifi_chnl_info[0],
|
"H2C Wifi inform bt chnl Info", coex_dm->wifi_chnl_info);
|
||||||
coex_dm->wifi_chnl_info[1], coex_dm->wifi_chnl_info[2]);
|
|
||||||
|
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
||||||
|
@ -3259,16 +3258,9 @@ void ex_btc8723b2ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
for (i = 0; i < BT_INFO_SRC_8723B_2ANT_MAX; i++) {
|
for (i = 0; i < BT_INFO_SRC_8723B_2ANT_MAX; i++) {
|
||||||
if (coex_sta->bt_info_c2h_cnt[i]) {
|
if (coex_sta->bt_info_c2h_cnt[i]) {
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x "
|
"\r\n %-35s = %7ph(%d)",
|
||||||
"%02x %02x %02x %02x(%d)",
|
|
||||||
glbt_info_src_8723b_2ant[i],
|
glbt_info_src_8723b_2ant[i],
|
||||||
coex_sta->bt_info_c2h[i][0],
|
coex_sta->bt_info_c2h[i],
|
||||||
coex_sta->bt_info_c2h[i][1],
|
|
||||||
coex_sta->bt_info_c2h[i][2],
|
|
||||||
coex_sta->bt_info_c2h[i][3],
|
|
||||||
coex_sta->bt_info_c2h[i][4],
|
|
||||||
coex_sta->bt_info_c2h[i][5],
|
|
||||||
coex_sta->bt_info_c2h[i][6],
|
|
||||||
coex_sta->bt_info_c2h_cnt[i]);
|
coex_sta->bt_info_c2h_cnt[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3296,10 +3288,8 @@ void ex_btc8723b2ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
|
|
||||||
ps_tdma_case = coex_dm->cur_ps_tdma;
|
ps_tdma_case = coex_dm->cur_ps_tdma;
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x case-%d (auto:%d)",
|
"\r\n %-35s = %5ph case-%d (auto:%d)",
|
||||||
"PS TDMA", coex_dm->ps_tdma_para[0],
|
"PS TDMA", coex_dm->ps_tdma_para,
|
||||||
coex_dm->ps_tdma_para[1], coex_dm->ps_tdma_para[2],
|
|
||||||
coex_dm->ps_tdma_para[3], coex_dm->ps_tdma_para[4],
|
|
||||||
ps_tdma_case, coex_dm->auto_tdma_adjust);
|
ps_tdma_case, coex_dm->auto_tdma_adjust);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %d/ %d ",
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s = %d/ %d ",
|
||||||
|
|
|
@ -2302,10 +2302,9 @@ void ex_halbtc8821a1ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
wifi_dot11_chnl, wifi_hs_chnl, bt_hs_on);
|
wifi_dot11_chnl, wifi_hs_chnl, bt_hs_on);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x ",
|
"\r\n %-35s = %3ph ",
|
||||||
"H2C Wifi inform bt chnl Info",
|
"H2C Wifi inform bt chnl Info",
|
||||||
coex_dm->wifi_chnl_info[0], coex_dm->wifi_chnl_info[1],
|
coex_dm->wifi_chnl_info);
|
||||||
coex_dm->wifi_chnl_info[2]);
|
|
||||||
|
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
||||||
|
@ -2366,15 +2365,9 @@ void ex_halbtc8821a1ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
for (i = 0; i < BT_INFO_SRC_8821A_1ANT_MAX; i++) {
|
for (i = 0; i < BT_INFO_SRC_8821A_1ANT_MAX; i++) {
|
||||||
if (coex_sta->bt_info_c2h_cnt[i]) {
|
if (coex_sta->bt_info_c2h_cnt[i]) {
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x %02x %02x(%d)",
|
"\r\n %-35s = %7ph(%d)",
|
||||||
glbt_info_src_8821a_1ant[i],
|
glbt_info_src_8821a_1ant[i],
|
||||||
coex_sta->bt_info_c2h[i][0],
|
coex_sta->bt_info_c2h[i],
|
||||||
coex_sta->bt_info_c2h[i][1],
|
|
||||||
coex_sta->bt_info_c2h[i][2],
|
|
||||||
coex_sta->bt_info_c2h[i][3],
|
|
||||||
coex_sta->bt_info_c2h[i][4],
|
|
||||||
coex_sta->bt_info_c2h[i][5],
|
|
||||||
coex_sta->bt_info_c2h[i][6],
|
|
||||||
coex_sta->bt_info_c2h_cnt[i]);
|
coex_sta->bt_info_c2h_cnt[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2412,13 +2405,9 @@ void ex_halbtc8821a1ant_display_coex_info(struct btc_coexist *btcoexist)
|
||||||
|
|
||||||
ps_tdma_case = coex_dm->cur_ps_tdma;
|
ps_tdma_case = coex_dm->cur_ps_tdma;
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x case-%d (auto:%d)",
|
"\r\n %-35s = %5ph case-%d (auto:%d)",
|
||||||
"PS TDMA",
|
"PS TDMA",
|
||||||
coex_dm->ps_tdma_para[0],
|
coex_dm->ps_tdma_para,
|
||||||
coex_dm->ps_tdma_para[1],
|
|
||||||
coex_dm->ps_tdma_para[2],
|
|
||||||
coex_dm->ps_tdma_para[3],
|
|
||||||
coex_dm->ps_tdma_para[4],
|
|
||||||
ps_tdma_case,
|
ps_tdma_case,
|
||||||
coex_dm->auto_tdma_adjust);
|
coex_dm->auto_tdma_adjust);
|
||||||
|
|
||||||
|
|
|
@ -3393,10 +3393,9 @@ ex_halbtc8821a2ant_display_coex_info(
|
||||||
wifi_dot_11_chnl, bt_hs_on, wifi_hs_chnl);
|
wifi_dot_11_chnl, bt_hs_on, wifi_hs_chnl);
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x ",
|
"\r\n %-35s = %3ph ",
|
||||||
"H2C Wifi inform bt chnl Info",
|
"H2C Wifi inform bt chnl Info",
|
||||||
coex_dm->wifi_chnl_info[0], coex_dm->wifi_chnl_info[1],
|
coex_dm->wifi_chnl_info);
|
||||||
coex_dm->wifi_chnl_info[2]);
|
|
||||||
|
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
|
||||||
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi);
|
||||||
|
@ -3454,15 +3453,9 @@ ex_halbtc8821a2ant_display_coex_info(
|
||||||
for (i = 0; i < BT_INFO_SRC_8821A_2ANT_MAX; i++) {
|
for (i = 0; i < BT_INFO_SRC_8821A_2ANT_MAX; i++) {
|
||||||
if (coex_sta->bt_info_c2h_cnt[i]) {
|
if (coex_sta->bt_info_c2h_cnt[i]) {
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x %02x %02x(%d)",
|
"\r\n %-35s = %7ph(%d)",
|
||||||
glbt_info_src_8821a_2ant[i],
|
glbt_info_src_8821a_2ant[i],
|
||||||
coex_sta->bt_info_c2h[i][0],
|
coex_sta->bt_info_c2h[i],
|
||||||
coex_sta->bt_info_c2h[i][1],
|
|
||||||
coex_sta->bt_info_c2h[i][2],
|
|
||||||
coex_sta->bt_info_c2h[i][3],
|
|
||||||
coex_sta->bt_info_c2h[i][4],
|
|
||||||
coex_sta->bt_info_c2h[i][5],
|
|
||||||
coex_sta->bt_info_c2h[i][6],
|
|
||||||
coex_sta->bt_info_c2h_cnt[i]);
|
coex_sta->bt_info_c2h_cnt[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3494,11 +3487,9 @@ ex_halbtc8821a2ant_display_coex_info(
|
||||||
if (!btcoexist->manual_control) {
|
if (!btcoexist->manual_control) {
|
||||||
ps_tdma_case = coex_dm->cur_ps_tdma;
|
ps_tdma_case = coex_dm->cur_ps_tdma;
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %02x %02x %02x %02x %02x case-%d",
|
"\r\n %-35s = %5ph case-%d",
|
||||||
"PS TDMA",
|
"PS TDMA",
|
||||||
coex_dm->ps_tdma_para[0], coex_dm->ps_tdma_para[1],
|
coex_dm->ps_tdma_para, ps_tdma_case);
|
||||||
coex_dm->ps_tdma_para[2], coex_dm->ps_tdma_para[3],
|
|
||||||
coex_dm->ps_tdma_para[4], ps_tdma_case);
|
|
||||||
|
|
||||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
|
||||||
"\r\n %-35s = %d/ %d ", "DecBtPwr/ IgnWlanAct",
|
"\r\n %-35s = %d/ %d ", "DecBtPwr/ IgnWlanAct",
|
||||||
|
|
Loading…
Reference in New Issue