rtlwifi/rtl8192de: Fix print format string
PATCH 1/1 rtlwifi/rtl8192de: Fix print format string
%ul was likely meant as %lu to print an unsigned long, not an unsigned with a letter l at the end.
But in fact the value printed is u32 anyway, so just drop the l completely.
Signed-off-by Oleg Drokin <[email protected]>
--- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +3 -3
@@ -588,7 +588,7 @@ static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,* setting. */ udelay (1 );RT_TRACE (rtlpriv,COMP_INIT ,DBG_TRACE , -"The Rtl819XAGCTAB_Array_Table[0] is %ul Rtl819XPHY_REGArray[1] is %ul\n" , +"The Rtl819XAGCTAB_Array_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n" , agctab_array_table[i], agctab_array_table[i +1 ]); }
@@ -604,7 +604,7 @@ static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,* setting. */ udelay (1 );RT_TRACE (rtlpriv,COMP_INIT ,DBG_TRACE , -"The Rtl819XAGCTAB_Array_Table[0] is %ul Rtl819XPHY_REGArray[1] is %ul\n" , +"The Rtl819XAGCTAB_Array_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n" , agctab_array_table[i], agctab_array_table[i +1 ]); }
@@ -620,7 +620,7 @@ static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,* setting. */ udelay (1 );RT_TRACE (rtlpriv,COMP_INIT ,DBG_TRACE , -"The Rtl819XAGCTAB_5GArray_Table[0] is %ul Rtl819XPHY_REGArray[1] is %ul\n" , +"The Rtl819XAGCTAB_5GArray_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n" , agctab_5garray_table[i], agctab_5garray_table[i +1 ]); }
Signature · 1 line
2.7.4
Quoted 4 lines · Oleg Drokin
%ul was likely meant as %lu to print an unsigned long, not an unsigned with a letter l at the end.
But in fact the value printed is u32 anyway, so just drop the l completely.
This patch looks OK, thus
Acked-by Larry Finger <[email protected]>
Thanks,
Larry
Quoted 38 lines
Signed-off-by Oleg Drokin <[email protected]>--- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +3
-3@@ -588,7 +588,7 @@ static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,* setting. */ udelay (1 );RT_TRACE (rtlpriv,COMP_INIT ,DBG_TRACE , -"The Rtl819XAGCTAB_Array_Table[0] is %ul Rtl819XPHY_REGArray[1] is %ul\n" , +"The Rtl819XAGCTAB_Array_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n" , agctab_array_table[i], agctab_array_table[i +1 ]); }@@ -604,7 +604,7 @@ static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,* setting. */ udelay (1 );RT_TRACE (rtlpriv,COMP_INIT ,DBG_TRACE , -"The Rtl819XAGCTAB_Array_Table[0] is %ul Rtl819XPHY_REGArray[1] is %ul\n" , +"The Rtl819XAGCTAB_Array_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n" , agctab_array_table[i], agctab_array_table[i +1 ]); }@@ -620,7 +620,7 @@ static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,* setting. */ udelay (1 );RT_TRACE (rtlpriv,COMP_INIT ,DBG_TRACE , -"The Rtl819XAGCTAB_5GArray_Table[0] is %ul Rtl819XPHY_REGArray[1] is %ul\n" , +"The Rtl819XAGCTAB_5GArray_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n" , agctab_5garray_table[i], agctab_5garray_table[i +1 ]); }
Quoted 7 lines · Oleg Drokin
%ul was likely meant as %lu to print an unsigned long, not an unsigned with a letter l at the end.
But in fact the value printed is u32 anyway, so just drop the l completely.Signed-off-by Oleg Drokin <[email protected]>Acked-by Larry Finger <[email protected]>
Thanks, 1 patch applied to wireless-drivers-next.git:
5856cd5b8dda rtlwifi/rtl8192de: Fix print format string
Signature · 2 lines
Sent by pwcli https://patchwork.kernel.org/patch/9302259/