All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath6kl: Fix firmware crash dump
@ 2012-02-08  6:53 Naveen Gangadharan
  2012-02-08  9:48 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Naveen Gangadharan @ 2012-02-08  6:53 UTC (permalink / raw)
  To: linux-wireless

Fixed a bug when we dump the firmware crash log.

Signed-off-by: Naveen Gangadharan <ngangadh@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath6kl/hif.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/hif.c b/drivers/net/wireless/ath/ath6kl/hif.c
index e911737..78d0018 100644
--- a/drivers/net/wireless/ath/ath6kl/hif.c
+++ b/drivers/net/wireless/ath/ath6kl/hif.c
@@ -106,7 +106,7 @@ static void ath6kl_hif_dump_fw_crash(struct ath6kl *ar)
 
 	BUILD_BUG_ON(REG_DUMP_COUNT_AR6003 % 4);
 
-	for (i = 0; i < REG_DUMP_COUNT_AR6003 / 4; i++) {
+	for (i = 0; i < REG_DUMP_COUNT_AR6003; i += 4) {
 		ath6kl_info("%d: 0x%8.8x 0x%8.8x 0x%8.8x 0x%8.8x\n",
 			    4 * i,
 			    le32_to_cpu(regdump_val[i]),
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath6kl: Fix firmware crash dump
  2012-02-08  6:53 [PATCH] ath6kl: Fix firmware crash dump Naveen Gangadharan
@ 2012-02-08  9:48 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2012-02-08  9:48 UTC (permalink / raw)
  To: Naveen Gangadharan; +Cc: linux-wireless, ath6kl-devel

On 02/08/2012 08:53 AM, Naveen Gangadharan wrote:
> Fixed a bug when we dump the firmware crash log.
> 
> Signed-off-by: Naveen Gangadharan <ngangadh@qca.qualcomm.com>

Thanks, applied with these changes:

commit 3b96d49a79021ce4c1ca26aecd784d16aeb91a7c
Author: Naveen Gangadharan <ngangadh@qca.qualcomm.com>
Date:   Tue Feb 7 22:53:32 2012 -0800

    ath6kl: Fix firmware crash dump

    The firmware crash dump printout was wrong as it was using incorrect
    offsets.

    kvalo: improve commit log, change the "%d:" to print word indexes,
not bytes

    Signed-off-by: Naveen Gangadharan <ngangadh@qca.qualcomm.com>
    Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

Kalle

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-08  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08  6:53 [PATCH] ath6kl: Fix firmware crash dump Naveen Gangadharan
2012-02-08  9:48 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.