Commit 0f840011f0396dcb97ca82c64fd43f6990a574dd

Authored by Brice Goglin
Committed by David S. Miller
1 parent 6f57321422

myri10ge: print MAC and serial number on probe failure

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>

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

drivers/net/myri10ge/myri10ge.c
... ... @@ -75,7 +75,7 @@
75 75 #include "myri10ge_mcp.h"
76 76 #include "myri10ge_mcp_gen_header.h"
77 77  
78   -#define MYRI10GE_VERSION_STR "1.4.4-1.395"
  78 +#define MYRI10GE_VERSION_STR "1.4.4-1.398"
79 79  
80 80 MODULE_DESCRIPTION("Myricom 10G driver (10GbE)");
81 81 MODULE_AUTHOR("Maintainer: help@myri.com");
... ... @@ -3929,6 +3929,10 @@
3929 3929 myri10ge_dummy_rdma(mgp, 0);
3930 3930  
3931 3931 abort_with_ioremap:
  3932 + if (mgp->mac_addr_string != NULL)
  3933 + dev_err(&pdev->dev,
  3934 + "myri10ge_probe() failed: MAC=%s, SN=%ld\n",
  3935 + mgp->mac_addr_string, mgp->serial_number);
3932 3936 iounmap(mgp->sram);
3933 3937  
3934 3938 abort_with_mtrr: