iwlwifi: mvm: remove h from printk format specifier
Subsystems (3)
PATCH 1/1 iwlwifi: mvm: remove h from printk format specifier
From: Tom Rix <[email protected]>
This change fixes the checkpatch warning described in this commit commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of
unnecessary %h[xudi] and %hh[xudi]")
Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi].
Signed-off-by Tom Rix <[email protected]>
--- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 6 +++--- drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +3 -3
@@ -326,10 +326,10 @@ static ssize_t iwl_dbgfs_sar_geo_profile_read(struct file *file, pos +=scnprintf (buf + pos, bufsz - pos,"Use geographic profile %d\n" , tbl_idx); pos +=scnprintf (buf + pos, bufsz - pos, -"2.4GHz:\n\tChain A offset: %hhu dBm\n\tChain B offset: %hhu dBm\n\tmax tx power: %hhu dBm\n" , +"2.4GHz:\n\tChain A offset: %u dBm\n\tChain B offset: %u dBm\n\tmax tx power: %u dBm\n" , value[1 ], value[2 ], value[0 ]); pos +=scnprintf (buf + pos, bufsz - pos, -"5.2GHz:\n\tChain A offset: %hhu dBm\n\tChain B offset: %hhu dBm\n\tmax tx power: %hhu dBm\n" , +"5.2GHz:\n\tChain A offset: %u dBm\n\tChain B offset: %u dBm\n\tmax tx power: %u dBm\n" , value[4 ], value[5 ], value[3 ]); }mutex_unlock (&mvm->mutex);
@@ -1035,7 +1035,7 @@ iwl_dbgfs_scan_ant_rxchain_read(struct file *file, pos +=scnprintf (buf + pos, bufsz - pos,"B" );if (mvm->scan_rx_ant &ANT_C ) pos +=scnprintf (buf + pos, bufsz - pos,"C" ); - pos +=scnprintf (buf + pos, bufsz - pos," (%hhx)\n" , mvm->scan_rx_ant); + pos +=scnprintf (buf + pos, bufsz - pos," (%x)\n" , mvm->scan_rx_ant);return simple_read_from_buffer (user_buf, count, ppos, buf, pos); }
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c +4 -4
@@ -949,10 +949,10 @@ static void iwl_mvm_debug_range_resp(struct iwl_mvm *mvm, u8 index,IWL_DEBUG_INFO (mvm,"\tstatus: %d\n" , res->status);IWL_DEBUG_INFO (mvm,"\tBSSID: %pM\n" , res->addr);IWL_DEBUG_INFO (mvm,"\thost time: %llu\n" , res->host_time); -IWL_DEBUG_INFO (mvm,"\tburst index: %hhu\n" , res->ftm.burst_index); +IWL_DEBUG_INFO (mvm,"\tburst index: %u\n" , res->ftm.burst_index);IWL_DEBUG_INFO (mvm,"\tsuccess num: %u\n" , res->ftm.num_ftmr_successes);IWL_DEBUG_INFO (mvm,"\trssi: %d\n" , res->ftm.rssi_avg); -IWL_DEBUG_INFO (mvm,"\trssi spread: %hhu\n" , res->ftm.rssi_spread); +IWL_DEBUG_INFO (mvm,"\trssi spread: %u\n" , res->ftm.rssi_spread);IWL_DEBUG_INFO (mvm,"\trtt: %lld\n" , res->ftm.rtt_avg);IWL_DEBUG_INFO (mvm,"\trtt var: %llu\n" , res->ftm.rtt_variance);IWL_DEBUG_INFO (mvm,"\trtt spread: %llu\n" , res->ftm.rtt_spread);
@@ -1051,7 +1051,7 @@ void iwl_mvm_ftm_range_resp(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb) }IWL_DEBUG_INFO (mvm,"Range response received\n" ); -IWL_DEBUG_INFO (mvm,"request id: %lld, num of entries: %hhu\n" , +IWL_DEBUG_INFO (mvm,"request id: %lld, num of entries: %u\n" , mvm->ftm_initiator.req->cookie, num_of_aps);for (i =0 ; i < num_of_aps && i <IWL_MVM_TOF_MAX_APS ; i++) {
@@ -1143,7 +1143,7 @@ void iwl_mvm_ftm_range_resp(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)if (fw_has_api (&mvm->fw->ucode_capa,IWL_UCODE_TLV_API_FTM_RTT_ACCURACY )) -IWL_DEBUG_INFO (mvm,"RTT confidence: %hhu\n" , +IWL_DEBUG_INFO (mvm,"RTT confidence: %u\n" , fw_ap->rttConfidence);iwl_mvm_debug_range_resp (mvm, i, &result);
Signature · 1 line
2.27.0