myri10ge: print MAC and serial number on probe failure
Subsystems (2)
PATCH 1/1 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 <[email protected]>
drivers/net/myri10ge/myri10ge.c +5 -1
@@ -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: [email protected]" );
@@ -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:
From: Brice Goglin <[email protected]>
Date: Mon, 05 Jan 2009 23:57:32 +0100
Quoted 4 lines
To help board identification and diagnosis, print the MAC and serial number on probe failure if they are available.
Signed-off-by Brice Goglin <[email protected]>
Applied, thanks Brice.