be2net: fixup log msgs for async events
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 6 Aug 2013 03:57:19 +0000 (09:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 17:39:08 +0000 (10:39 -0700)
Log the event type for unknown async events

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c

index 48e266abbb8eef955d5b777e4f14e50430cfde46..e49e8cdffbe0f3bec4bbcd2356a1f3492881f38a 100644 (file)
@@ -258,7 +258,8 @@ static void be_async_grp5_evt_process(struct be_adapter *adapter,
                (struct be_async_event_grp5_pvid_state *)evt);
        break;
        default:
-               dev_warn(&adapter->pdev->dev, "Unknown grp5 event!\n");
+               dev_warn(&adapter->pdev->dev, "Unknown grp5 event 0x%x!\n",
+                        event_type);
                break;
        }
 }
@@ -279,7 +280,8 @@ static void be_async_dbg_evt_process(struct be_adapter *adapter,
                adapter->flags |= BE_FLAGS_QNQ_ASYNC_EVT_RCVD;
        break;
        default:
-               dev_warn(&adapter->pdev->dev, "Unknown debug event\n");
+               dev_warn(&adapter->pdev->dev, "Unknown debug event 0x%x!\n",
+                        event_type);
        break;
        }
 }