[sysprof] capture: fix format type for address on macOS



commit 2e72e6af84e4bef66aa1bc7f778054d9256ed667
Author: Christian Hergert <chergert redhat com>
Date:   Fri Feb 7 11:00:09 2020 -0800

    capture: fix format type for address on macOS

 src/libsysprof-capture/sysprof-capture-types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof-capture/sysprof-capture-types.h b/src/libsysprof-capture/sysprof-capture-types.h
index 29667ef..d95d6b3 100644
--- a/src/libsysprof-capture/sysprof-capture-types.h
+++ b/src/libsysprof-capture/sysprof-capture-types.h
@@ -73,12 +73,12 @@ G_BEGIN_DECLS
 # define SYSPROF_ALIGNED_END(_N) __attribute__((aligned ((_N))))
 #endif
 
+#define SYSPROF_CAPTURE_ADDRESS_FORMAT "0x%016"G_GINT64_MODIFIER"x"
+
 #if GLIB_SIZEOF_VOID_P == 8
 # define SYSPROF_CAPTURE_JITMAP_MARK    G_GUINT64_CONSTANT(0xE000000000000000)
-# define SYSPROF_CAPTURE_ADDRESS_FORMAT "0x%016lx"
 #elif GLIB_SIZEOF_VOID_P == 4
 # define SYSPROF_CAPTURE_JITMAP_MARK    G_GUINT64_CONSTANT(0xE0000000)
-# define SYSPROF_CAPTURE_ADDRESS_FORMAT "0x%016llx"
 #else
 #error Unknown GLIB_SIZEOF_VOID_P
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]