summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user_macros.h
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@jp.adit-jv.com>2016-06-13 14:25:45 +0100
committerChristoph Lipka <clipka@jp.adit-jv.com>2016-10-24 13:39:56 +0900
commitce137a345cf2f637453aa1795af3d381157bf055 (patch)
tree87a0ae1e914c340315c23774d6b7b07d3da627cd /include/dlt/dlt_user_macros.h
parent3894a8d101a7be0f67262de8af3746a768433fed (diff)
downloadDLT-daemon-ce137a345cf2f637453aa1795af3d381157bf055.tar.gz
DLT_PTR macro: Improve implementation and function API added
The original implementation result in a compile error when DLT_PTR is used with other macros like DLT_STRING. This patch overcomes that problem. Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Diffstat (limited to 'include/dlt/dlt_user_macros.h')
-rw-r--r--include/dlt/dlt_user_macros.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index e1e9104..e1968a2 100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -331,13 +331,7 @@
* Architecture independent macro to print pointers
*/
#define DLT_PTR(PTR_VAR) \
- do { \
- if (sizeof(void *) < 8) { \
- DLT_HEX32((uintptr_t)PTR_VAR); \
- } else { \
- DLT_HEX64((uintptr_t)PTR_VAR); \
- } \
- } while(0)
+ (void)dlt_user_log_write_ptr(&log_local, PTR_VAR)
/**
* Trace network message