summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTed Lyngmo <ted@lyncon.se>2020-02-05 15:17:09 +0100
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-02-06 10:03:19 +0900
commitad3ac30b779097c282a7d52c72e3da23872ae6d1 (patch)
tree882646dbcdf20685cadc164e73efcdddd5e371a2 /include
parent4259bed2e11bc8c4b6ef4c71ba300db13df42110 (diff)
downloadDLT-daemon-ad3ac30b779097c282a7d52c72e3da23872ae6d1.tar.gz
Remove naming of variadic macro parameters
The GNU preprocessor supports naming of the variadic macro parameter, but not preprocessors does. Signed-off-by: Ted Lyngmo <ted@lyncon.se>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_user_macros.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index 1b386bf..2c0135e 100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -211,14 +211,14 @@
/* DLT_LOG is not supported by MS Visual C++ */
/* use function interface instead */
#else
-# define DLT_LOG(CONTEXT, LOGLEVEL, ARGS ...) \
+# define DLT_LOG(CONTEXT, LOGLEVEL, ...) \
do { \
DltContextData log_local; \
int dlt_local; \
dlt_local = dlt_user_log_write_start(&CONTEXT, &log_local, LOGLEVEL); \
if (dlt_local == DLT_RETURN_TRUE) \
{ \
- ARGS; \
+ __VA_ARGS__; \
(void)dlt_user_log_write_finish(&log_local); \
} \
} while (0)
@@ -238,14 +238,14 @@
/* DLT_LOG_TS is not supported by MS Visual C++ */
/* use function interface instead */
#else
-# define DLT_LOG_TS(CONTEXT, LOGLEVEL, TS, ARGS ...) \
+# define DLT_LOG_TS(CONTEXT, LOGLEVEL, TS, ...) \
do { \
DltContextData log_local; \
int dlt_local; \
dlt_local = dlt_user_log_write_start(&CONTEXT, &log_local, LOGLEVEL); \
if (dlt_local == DLT_RETURN_TRUE) \
{ \
- ARGS; \
+ __VA_ARGS__; \
log_local.use_timestamp = DLT_USER_TIMESTAMP; \
log_local.user_timestamp = (uint32_t) TS; \
(void)dlt_user_log_write_finish(&log_local); \
@@ -269,14 +269,14 @@
/* DLT_LOG_ID is not supported by MS Visual C++ */
/* use function interface instead */
#else
-# define DLT_LOG_ID(CONTEXT, LOGLEVEL, MSGID, ARGS ...) \
+# define DLT_LOG_ID(CONTEXT, LOGLEVEL, MSGID, ...) \
do { \
DltContextData log_local; \
int dlt_local; \
dlt_local = dlt_user_log_write_start_id(&CONTEXT, &log_local, LOGLEVEL, MSGID); \
if (dlt_local == DLT_RETURN_TRUE) \
{ \
- ARGS; \
+ __VA_ARGS__; \
(void)dlt_user_log_write_finish(&log_local); \
} \
} while (0)
@@ -299,14 +299,14 @@
/* DLT_LOG_ID_TS is not supported by MS Visual C++ */
/* use function interface instead */
#else
-# define DLT_LOG_ID_TS(CONTEXT, LOGLEVEL, MSGID, TS, ARGS ...) \
+# define DLT_LOG_ID_TS(CONTEXT, LOGLEVEL, MSGID, TS, ...) \
do { \
DltContextData log_local; \
int dlt_local; \
dlt_local = dlt_user_log_write_start_id(&CONTEXT, &log_local, LOGLEVEL, MSGID); \
if (dlt_local == DLT_RETURN_TRUE) \
{ \
- ARGS; \
+ __VA_ARGS__; \
log_local.use_timestamp = DLT_USER_TIMESTAMP; \
log_local.user_timestamp = (uint32_t) TS; \
(void)dlt_user_log_write_finish(&log_local); \