From 2e72e6af84e4bef66aa1bc7f778054d9256ed667 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 7 Feb 2020 11:00:09 -0800 Subject: [PATCH] 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 29667ef0..d95d6b3f 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