mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before
printing error message. MFC after:5 days
This commit is contained in:
parent
d2cc5c7a66
commit
41b18fab96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271728
@ -246,14 +246,23 @@ ECORE_CRC32_LE(uint32_t seed, uint8_t *mac, uint32_t len)
|
||||
|
||||
#else
|
||||
|
||||
extern unsigned long bxe_debug;
|
||||
|
||||
#define BXE_DEBUG_ECORE_DBG_BREAK_IF 0x01
|
||||
#define BXE_DEBUG_ECORE_BUG 0x02
|
||||
#define BXE_DEBUG_ECORE_BUG_ON 0x04
|
||||
|
||||
#define ECORE_DBG_BREAK_IF(exp) \
|
||||
printf("%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
|
||||
if (bxe_debug & BXE_DEBUG_ECORE_DBG_BREAK_IF) \
|
||||
printf("%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
|
||||
|
||||
#define ECORE_BUG(exp) \
|
||||
printf("%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
|
||||
if (bxe_debug & BXE_DEBUG_ECORE_BUG) \
|
||||
printf("%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
|
||||
|
||||
#define ECORE_BUG_ON(exp) \
|
||||
printf("%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
|
||||
if (bxe_debug & BXE_DEBUG_ECORE_BUG_ON) \
|
||||
printf("%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
|
||||
|
||||
|
||||
#endif /* #ifdef ECORE_STOP_ON_ERROR */
|
||||
|
Loading…
Reference in New Issue
Block a user