[IPoIB] Use PnP string conversion in debug output.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 17 May 2006 20:24:47 +0000 (20:24 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 17 May 2006 20:24:47 +0000 (20:24 +0000)
Submitted by: Tzachi Dar (tzachid@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@358 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_adapter.c

index d6e2aac..9d99db6 100644 (file)
@@ -513,7 +513,8 @@ __ipoib_pnp_cb(
        }\r
 \r
        IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_PNP,\r
-               ("p_pnp_rec->pnp_event = 0x%x\n",p_pnp_rec->pnp_event));\r
+               ("p_pnp_rec->pnp_event = 0x%x (%s)\n",\r
+               p_pnp_rec->pnp_event, ib_get_pnp_event_str( p_pnp_rec->pnp_event )) );\r
 \r
        p_port_rec = (ib_pnp_port_rec_t*)p_pnp_rec;\r
 \r
@@ -642,8 +643,8 @@ __ipoib_pnp_cb(
 \r
        default:\r
                IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,\r
-                       ("IPOIB: Received unhandled PnP event 0x%x\n",\r
-                       p_pnp_rec->pnp_event) );\r
+                       ("IPOIB: Received unhandled PnP event 0x%x (%s)\n",\r
+                       p_pnp_rec->pnp_event, ib_get_pnp_event_str( p_pnp_rec->pnp_event )) );\r
                /* Fall through. */\r
        case IB_PNP_PKEY_CHANGE:\r
        case IB_PNP_SM_CHANGE:\r