mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
capture: fix format type for address on macOS
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user