This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH v2 2/8] Fix order of arguments in the TRACEBUF_INITIALIZER
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Tue, 4 Apr 2017 12:00:25 +0200
- Subject: [PATCH v2 2/8] Fix order of arguments in the TRACEBUF_INITIALIZER
- Authentication-results: sourceware.org; auth=none
- References: <1491300031-6012-1-git-send-email-sebastian.huber@embedded-brains.de>
From: hselasky <hselasky@FreeBSD.org>
Fix order of arguments in the TRACEBUF_INITIALIZER macro so that we can
define QUEUE_MACRO_DEBUG to debug list problems.
MFC after: 1 week
---
newlib/libc/include/sys/queue.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newlib/libc/include/sys/queue.h b/newlib/libc/include/sys/queue.h
index 7a5bc79..d9908a4 100644
--- a/newlib/libc/include/sys/queue.h
+++ b/newlib/libc/include/sys/queue.h
@@ -116,7 +116,7 @@ struct qm_trace {
};
#define TRACEBUF struct qm_trace trace;
-#define TRACEBUF_INITIALIZER { __FILE__, __LINE__, NULL, 0 } ,
+#define TRACEBUF_INITIALIZER { __LINE__, 0, __FILE__, NULL } ,
#define TRASHIT(x) do {(x) = (void *)-1;} while (0)
#define QMD_SAVELINK(name, link) void **name = (void *)&(link)
--
1.8.4.5