OSDN Git Service

iwlwifi: mvm: fix %16 to %016 print format
authorJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2018 09:04:30 +0000 (11:04 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:29 +0000 (16:10 +0200)
With just %16, it means 16 characters padding, but we really
don't want to print "0x         1F4547B", but instead want to
have this filled with zeroes, so we need the 0.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/intel/iwlwifi/mvm/utils.c

index 11714eb..b1d6dea 100644 (file)
@@ -1345,7 +1345,7 @@ void iwl_mvm_rx_beacon_notif(struct iwl_mvm *mvm,
        agg_status = iwl_mvm_get_agg_status(mvm, beacon_notify_hdr);
        status = le16_to_cpu(agg_status->status) & TX_STATUS_MSK;
        IWL_DEBUG_RX(mvm,
-                    "beacon status %#x retries:%d tsf:0x%16llX gp2:0x%X rate:%d\n",
+                    "beacon status %#x retries:%d tsf:0x%016llX gp2:0x%X rate:%d\n",
                     status, beacon_notify_hdr->failure_frame,
                     le64_to_cpu(beacon->tsf),
                     mvm->ap_last_beacon_gp2,
index e8659bf..5dbbd35 100644 (file)
@@ -248,7 +248,7 @@ void iwl_mvm_rx_fw_error(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
        IWL_ERR(mvm, "FW Error notification: seq 0x%04X service 0x%08X\n",
                le16_to_cpu(err_resp->bad_cmd_seq_num),
                le32_to_cpu(err_resp->error_service));
-       IWL_ERR(mvm, "FW Error notification: timestamp 0x%16llX\n",
+       IWL_ERR(mvm, "FW Error notification: timestamp 0x%016llX\n",
                le64_to_cpu(err_resp->timestamp));
 }