qcacmn: During qdf assert don't print generic failure information

During qdf assert generic failure information printed at last is misleading
failure reason, to avoid this don't print generic failure information.

Change-Id: I55359b2e41a3ee50de4e45e73183f2480c28a1eb
CRs-Fixed: 2789137
This commit is contained in:
Karthik Kantamneni 2020-10-05 13:23:09 +05:30 • committed by Gerrit - the friendly Code Review server
commit aa68690fd1
2 changed files with 15 additions and 1 deletions

View file

@ -414,6 +414,13 @@ static inline void __qdf_bug(void)
} \
} while (0)
#define QDF_BUG_ON_ASSERT(_condition) \
do { \
if (!(_condition)) { \
__qdf_bug(); \
} \
} while (0)
#else /* PANIC_ON_BUG */
#define QDF_DEBUG_PANIC(reason...) \
@ -433,6 +440,13 @@ static inline void __qdf_bug(void)
} \
} while (0)
#define QDF_BUG_ON_ASSERT(_condition) \
do { \
if (!(_condition)) { \
/* no-op */ \
} \
} while (0)
#endif /* PANIC_ON_BUG */
#ifdef KSYM_SYMBOL_LEN

View file

@ -211,7 +211,7 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
pr_err("Assertion failed! %s:%s %s:%d\n", \
# expr, __func__, __FILE__, __LINE__); \
dump_stack(); \
QDF_BUG(0); \
QDF_BUG_ON_ASSERT(0); \
} \
} while (0)