Patchwork sky2: endianness fix

login
register
mail settings
Submitter Mike McCormack
Date July 12, 2009, 5:31 a.m.
Message ID <392fb48f0907112231y2d00d5d8mc9cf576f78b4cff@mail.gmail.com>
Download mbox | patch
Permalink /patch/29708/
State Awaiting Upstream
Delegated to: David Miller
Headers show

Comments

Mike McCormack - July 12, 2009, 5:31 a.m.
Hi Stephen,

This patch was prompted by code review.

Mike

---

Signed-off-by: Mike McCormack <mikem@ring3k.org>
---
 drivers/net/sky2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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");
 	}