From: Brice Goglin <brice@myri•com>
To: Jeff Garzik <jeff@garzik•org>, netdev@vger•kernel.org
Subject: [PATCH] myri10ge: print MAC and serial number on probe failure
Date: Mon, 05 Jan 2009 23:57:32 +0100 [thread overview]
Message-ID: <4962905C.1030308@myri.com> (raw)
To help board identification and diagnosis, print the MAC
and serial number on probe failure if they are available.
Signed-off-by: Brice Goglin <brice@myri•com>
--- linux-2.6/drivers/net/myri10ge/myri10ge.c 2008-12-29 08:46:11.000000000 +0100
+++ linux-tmp/drivers/net/myri10ge/myri10ge.c 2009-01-05 23:51:14.000000000 +0100
@@ -75,7 +75,7 @@
#include "myri10ge_mcp.h"
#include "myri10ge_mcp_gen_header.h"
-#define MYRI10GE_VERSION_STR "1.4.4-1.395"
+#define MYRI10GE_VERSION_STR "1.4.4-1.398"
MODULE_DESCRIPTION("Myricom 10G driver (10GbE)");
MODULE_AUTHOR("Maintainer: help@myri•com");
@@ -3929,6 +3929,10 @@
myri10ge_dummy_rdma(mgp, 0);
abort_with_ioremap:
+ if (mgp->mac_addr_string != NULL)
+ dev_err(&pdev->dev,
+ "myri10ge_probe() failed: MAC=%s, SN=%ld\n",
+ mgp->mac_addr_string, mgp->serial_number);
iounmap(mgp->sram);
abort_with_mtrr:
next reply other threads:[~2009-01-05 22:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 22:57 Brice Goglin [this message]
2009-01-06 2:16 ` [PATCH] myri10ge: print MAC and serial number on probe failure David Miller
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=4962905C.1030308@myri.com \
--to=brice@myri$(echo .)com \
--cc=jeff@garzik$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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