sysprof/0001-build-fix-some-32-bit-build-issues.patch
2019-07-19 06:02:17 +03:00

43 lines
1.6 KiB
Diff

From ce7b11695f906aeeb1e4f88a9b6ed9161ffc0af9 Mon Sep 17 00:00:00 2001
From: Christian Hergert <chergert@redhat.com>
Date: Tue, 2 Jul 2019 17:00:44 -0700
Subject: [PATCH] build: fix some 32-bit build issues
---
src/helpers.c | 2 +-
src/libsysprof/sysprof-symbol-map.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/helpers.c b/src/helpers.c
index 3673df3..828f88f 100644
--- a/src/helpers.c
+++ b/src/helpers.c
@@ -110,7 +110,7 @@ helpers_perf_event_open (GVariant *options,
gint32 pid,
gint32 cpu,
gint group_fd,
- gulong flags,
+ guint64 flags,
gint *out_fd)
{
#ifndef __linux__
diff --git a/src/libsysprof/sysprof-symbol-map.c b/src/libsysprof/sysprof-symbol-map.c
index d0b0ebc..4367cd9 100644
--- a/src/libsysprof/sysprof-symbol-map.c
+++ b/src/libsysprof/sysprof-symbol-map.c
@@ -342,9 +342,9 @@ sysprof_symbol_map_printf (SysprofSymbolMap *self)
Element *ele = g_ptr_array_index (self->samples, i);
if (ele->tag)
- g_print ("%-5d: %p: %s [%s]\n", ele->pid, (gpointer)ele->addr, ele->name, g_quark_to_string (ele->tag));
+ g_print ("%-5d: %"G_GUINT64_FORMAT": %s [%s]\n", ele->pid, ele->addr, ele->name, g_quark_to_string (ele->tag));
else
- g_print ("%-5d: %p: %s\n", ele->pid, (gpointer)ele->addr, ele->name);
+ g_print ("%-5d: %"G_GUINT64_FORMAT": %s\n", ele->pid, ele->addr, ele->name);
}
}
--
2.21.0