Patchwork ucc_geth: fix UCC device number in debug message

login
register
mail settings
Submitter Sergey Matyukevich
Date July 28, 2010, 6:05 p.m.
Message ID <1280340321-20276-1-git-send-email-geomatsi@gmail.com>
Download mbox | patch
Permalink /patch/60166/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sergey Matyukevich - July 28, 2010, 6:05 p.m.
This patch contains a fix for UCC device number in verbose debug message.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>

---
 drivers/net/ucc_geth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - July 31, 2010, 5:09 a.m.
From: Sergey Matyukevich <geomatsi@gmail.com>
Date: Wed, 28 Jul 2010 22:05:21 +0400

> This patch contains a fix for UCC device number in verbose debug message.
> 
> Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 807470e..ca1f36d 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -594,7 +594,7 @@  static void dump_regs(struct ucc_geth_private *ugeth)
 {
 	int i;
 
-	ugeth_info("UCC%d Geth registers:", ugeth->ug_info->uf_info.ucc_num);
+	ugeth_info("UCC%d Geth registers:", ugeth->ug_info->uf_info.ucc_num + 1);
 	ugeth_info("Base address: 0x%08x", (u32) ugeth->ug_regs);
 
 	ugeth_info("maccfg1    : addr - 0x%08x, val - 0x%08x",