[<prev] [next>] [day] [month] [year] [list]
Message-ID: <392fb48f0907112231y2d00d5d8mc9cf576f78b4cff@mail.gmail.com>
Date: Sun, 12 Jul 2009 14:31:42 +0900
From: Mike McCormack <mikem@...g3k.org>
To: netdev@...r.kernel.org,
Stephen Hemminger <shemminger@...ux-foundation.org>
Subject: [PATCH] sky2: endianness fix
Hi Stephen,
This patch was prompted by code review.
Mike
---
Signed-off-by: Mike McCormack <mikem@...g3k.org>
---
drivers/net/sky2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 23a26d6..21ec0ca 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -4068,7 +4068,7 @@ static int sky2_debug_show(struct seq_file *seq, void *v)
idx = RING_NEXT(idx, STATUS_RING_SIZE)) {
const struct sky2_status_le *le = hw->st_le + idx;
seq_printf(seq, "[%d] %#x %d %#x\n",
- idx, le->opcode, le->length, le->status);
+ idx, le->opcode, le16_to_cpu(le->length), le32_to_cpu(le->status));
}
seq_puts(seq, "\n");
}
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists