From 069688bb76adb0fc15448f7be609e99fd356818a Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Sun, 7 Apr 2019 17:30:32 +0200 Subject: [PATCH] fix trace print of tkmap_instance address Fix the trace to contain a print of the address of the tkamp_instance (along with the instance id), rather than the address of the stack variable pointing to the tkmap_instance. Signed-off-by: Erik Boasson --- src/core/ddsi/src/ddsi_tkmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ddsi/src/ddsi_tkmap.c b/src/core/ddsi/src/ddsi_tkmap.c index fbc6094..0d1c6bd 100644 --- a/src/core/ddsi/src/ddsi_tkmap.c +++ b/src/core/ddsi/src/ddsi_tkmap.c @@ -203,7 +203,7 @@ retry: if (tk && rd) { - DDS_TRACE("tk=%p iid=%"PRIx64" ", (void *) &tk, tk->m_iid); + DDS_TRACE("tk=%p iid=%"PRIx64" ", (void *) tk, tk->m_iid); } return tk; }