QUEUE_MACRO_DEBUG is intended for userland code, so don't include checks

that call panic under it.
This commit is contained in:
Ed Maste 2006-05-26 02:26:53 +00:00
parent c212f0efe9
commit 1b861e4a10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158929

View File

@ -326,7 +326,7 @@ struct { \
* List functions.
*/
#if (defined(_KERNEL) && defined(INVARIANTS)) || defined(QUEUE_MACRO_DEBUG)
#if (defined(_KERNEL) && defined(INVARIANTS))
#define QMD_LIST_CHECK_HEAD(head, field) do { \
if (LIST_FIRST((head)) != NULL && \
LIST_FIRST((head))->field.le_prev != \
@ -349,7 +349,7 @@ struct { \
#define QMD_LIST_CHECK_HEAD(head, field)
#define QMD_LIST_CHECK_NEXT(elm, field)
#define QMD_LIST_CHECK_PREV(elm, field)
#endif /* (_KERNEL && INVARIANTS) || QUEUE_MACRO_DEBUG */
#endif /* (_KERNEL && INVARIANTS) */
#define LIST_EMPTY(head) ((head)->lh_first == NULL)