DORMANTno replies

[PATCH] sky2: endianness fix

From: Mike McCormack <hidden>
Date: 2009-07-12 05:37:46
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Hi Stephen,

This patch was prompted by code review.

Mike

---

Signed-off-by: Mike McCormack <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help