Netdev List
 help / color / mirror / Atom feed
From: Mike McCormack <mikem@ring3k.org>
To: netdev@vger.kernel.org,
	Stephen Hemminger <shemminger@linux-foundation.org>
Subject: [PATCH] sky2: endianness fix
Date: Sun, 12 Jul 2009 14:31:42 +0900	[thread overview]
Message-ID: <392fb48f0907112231y2d00d5d8mc9cf576f78b4cff@mail.gmail.com> (raw)

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(-)

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

                 reply	other threads:[~2009-07-12  5:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=392fb48f0907112231y2d00d5d8mc9cf576f78b4cff@mail.gmail.com \
    --to=mikem@ring3k.org \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox