From: Stanislaw Gruszka Date: Thu, 25 Aug 2016 15:05:16 +0000 (+0200) Subject: mwifiex: make "PCI-E is not the winner" print more informative X-Git-Tag: v4.9.8~1241^2~176^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd3fbb65cab86c07f5881ccb919a440497c0960d;p=platform%2Fkernel%2Flinux-rpi3.git mwifiex: make "PCI-E is not the winner" print more informative 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c index 453ab6a..8abbbfe 100644 --- a/drivers/net/wireless/marvell/mwifiex/pcie.c +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c @@ -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;