bnx2x: fix build with debug enabled
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 28 Jul 2015 15:47:02 +0000 (17:47 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Aug 2015 15:25:00 +0000 (17:25 +0200)
commitfe716d38024364900e1f9818154eb96eb2a6c460
treec9fb92aeb406e48220f19163fd54ce151a4b8672
parent17f0ca796f84d0f7e73bb28d0aa32bd3c933de4d
bnx2x: fix build with debug enabled

Build log:
error: unused variable ‘cid’
error: ‘RTE_LOG_WARN’ undeclared
error: expected ‘)’ before ‘sc’

There were unused variables defined for debug but not used in debug log because
it was ifdef'ed a the wrong condition (RTE_LIBRTE_BNX2X_DEBUG_DRIVER).

The warning were using WARN instead of WARNING.

Some debug messages had some extra parameters.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x_logs.h
drivers/net/bnx2x/ecore_init.h
drivers/net/bnx2x/ecore_sp.c