]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
lttng: Fix ceph_ctf_stringp
authorAdam Crume <adamcrume@gmail.com>
Fri, 1 Aug 2014 00:39:12 +0000 (17:39 -0700)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 17:57:32 +0000 (10:57 -0700)
Signed-off-by: Adam Crume <adamcrume@gmail.com>
src/tracing/tracing-common.h

index cb7a13e37bb51f1447b0ac675e4796a87b24328a..2ab1b764bfc27a3e62cd64268da2a5a5a48904ef 100644 (file)
@@ -31,7 +31,7 @@
 
 // val should have type char**
 #define ceph_ctf_stringp(field, val) \
-    ctf_string(field, ((val) == NULL || *(val) == NULL) ? "" : (val)) \
+    ctf_string(field, ((val) == NULL || *(val) == NULL) ? "" : *(val)) \
     ctf_integer(uint8_t, field##_isnull, (val) == NULL) \
     ctf_integer(uint8_t, field##_data_isnull, (val) == NULL || *(val) == NULL)