]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
myri10ge: print MAC and serial number on probe failure
authorBrice Goglin <brice@myri.com>
Tue, 6 Jan 2009 02:16:14 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2009 02:16:14 +0000 (18:16 -0800)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c

index 5e70180bf5693bdf0096164c8bb26b9bf23d3634..6bb71b687f7b17ef396cdba018487be37b9cb47b 100644 (file)
@@ -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 @@ abort_with_firmware:
        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: