ath10k: provide errno if bmi read/write fails
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 5 Jul 2013 13:15:10 +0000 (16:15 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 30 Jul 2013 15:01:17 +0000 (18:01 +0300)
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/bmi.c

index 1a2ef51b69d91f4335beff63e5b781136cd4ff95..aeae02979d4613f17b96cc9ceb8f93277a6b134e 100644 (file)
@@ -105,7 +105,8 @@ int ath10k_bmi_read_memory(struct ath10k *ar,
                ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen,
                                                  &resp, &rxlen);
                if (ret) {
-                       ath10k_warn("unable to read from the device\n");
+                       ath10k_warn("unable to read from the device (%d)\n",
+                                   ret);
                        return ret;
                }
 
@@ -149,7 +150,8 @@ int ath10k_bmi_write_memory(struct ath10k *ar,
                ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen,
                                                  NULL, NULL);
                if (ret) {
-                       ath10k_warn("unable to write to the device\n");
+                       ath10k_warn("unable to write to the device (%d)\n",
+                                   ret);
                        return ret;
                }