mwifiex: make "PCI-E is not the winner" print more informative
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 25 Aug 2016 15:05:16 +0000 (17:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 17:03:25 +0000 (20:03 +0300)
Printing ret and adapter->winner do not provide any useful information
as those are always 0 at point where the massage is printed. Print value
read from reg->fw_status register instead.

Stanislaw Gruszka <sgruszka@redhat.com>

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c

index 453ab6ad478466c9a1fdf53cb14b3047ef9d92c2..8abbbfe41785b0a4ac1794720c1053fd8bf6c548 100644 (file)
@@ -2074,8 +2074,7 @@ mwifiex_check_winner_status(struct mwifiex_adapter *adapter)
                adapter->winner = 1;
        } else {
                mwifiex_dbg(adapter, ERROR,
-                           "PCI-E is not the winner <%#x,%d>, exit dnld\n",
-                           ret, adapter->winner);
+                           "PCI-E is not the winner <%#x>", winner);
        }
 
        return ret;