svn commit: r279634 - stable/9/sys/sys

Hans Petter Selasky hselasky at FreeBSD.org
Thu Mar 5 09:27:40 UTC 2015


Author: hselasky
Date: Thu Mar  5 09:27:39 2015
New Revision: 279634
URL: https://svnweb.freebsd.org/changeset/base/279634

Log:
  MFC r279241 and r279242:
  Fix debugging macros.

Modified:
  stable/9/sys/sys/queue.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/sys/   (props changed)

Modified: stable/9/sys/sys/queue.h
==============================================================================
--- stable/9/sys/sys/queue.h	Thu Mar  5 09:23:43 2015	(r279633)
+++ stable/9/sys/sys/queue.h	Thu Mar  5 09:27:39 2015	(r279634)
@@ -610,7 +610,7 @@ struct {								\
 	TAILQ_NEXT((listelm), field) = (elm);				\
 	(elm)->field.tqe_prev = &TAILQ_NEXT((listelm), field);		\
 	QMD_TRACE_ELEM(&(elm)->field);					\
-	QMD_TRACE_ELEM(&listelm->field);				\
+	QMD_TRACE_ELEM(&(listelm)->field);				\
 } while (0)
 
 #define	TAILQ_INSERT_BEFORE(listelm, elm, field) do {			\
@@ -620,7 +620,7 @@ struct {								\
 	*(listelm)->field.tqe_prev = (elm);				\
 	(listelm)->field.tqe_prev = &TAILQ_NEXT((elm), field);		\
 	QMD_TRACE_ELEM(&(elm)->field);					\
-	QMD_TRACE_ELEM(&listelm->field);				\
+	QMD_TRACE_ELEM(&(listelm)->field);				\
 } while (0)
 
 #define	TAILQ_INSERT_HEAD(head, elm, field) do {			\


More information about the svn-src-stable-9 mailing list