Closes rhbz#951520.
Signed-off-by: Martin Milata <mmilata(a)redhat.com>
---
lib/core-backtrace.c | 4 ++--
python/backtrace.c | 4 ++--
python/thread.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/core-backtrace.c b/lib/core-backtrace.c
index 66cd8fd..c8016b2 100644
--- a/lib/core-backtrace.c
+++ b/lib/core-backtrace.c
@@ -74,9 +74,9 @@ btp_core_backtrace_fmt(GList *backtrace)
entry = backtrace->data;
/* BUILD_ID OFFSET SYMBOL MODNAME FINGERPRINT */
- btp_strbuf_append_strf(strbuf, "%s 0x%x %s %s %s\n",
+ btp_strbuf_append_strf(strbuf, "%s 0x%jx %s %s %s\n",
OR_UNKNOWN(entry->build_id),
- entry->build_id_offset,
+ (uintmax_t)entry->build_id_offset,
OR_UNKNOWN(entry->symbol),
OR_UNKNOWN(entry->filename),
OR_UNKNOWN(entry->fingerprint));
diff --git a/python/backtrace.c b/python/backtrace.c
index 70fcefb..f1ba783 100644
--- a/python/backtrace.c
+++ b/python/backtrace.c
@@ -329,8 +329,8 @@ PyObject *p_btp_backtrace_str(PyObject *self)
{
BacktraceObject *this = (BacktraceObject *)self;
struct btp_strbuf *buf = btp_strbuf_new();
- btp_strbuf_append_strf(buf, "Backtrace with %d threads",
- PyList_Size(this->threads));
+ btp_strbuf_append_strf(buf, "Backtrace with %zd threads",
+ (ssize_t)(PyList_Size(this->threads)));
char *str = btp_strbuf_free_nobuf(buf);
PyObject *result = Py_BuildValue("s", str);
free(str);
diff --git a/python/thread.c b/python/thread.c
index 894f057..05ade92 100644
--- a/python/thread.c
+++ b/python/thread.c
@@ -233,9 +233,9 @@ PyObject *p_btp_thread_str(PyObject *self)
{
ThreadObject *this = (ThreadObject *)self;
struct btp_strbuf *buf = btp_strbuf_new();
- btp_strbuf_append_strf(buf, "Thread #%u with %d frames",
+ btp_strbuf_append_strf(buf, "Thread #%u with %zd frames",
this->thread->number,
- PyList_Size(this->frames));
+ (ssize_t)(PyList_Size(this->frames)));
char *str = btp_strbuf_free_nobuf(buf);
PyObject *result = Py_BuildValue("s", str);
free(str);
--
1.7.11.7