From e2c55cfc8a3b82b7e1b6431409ed22575c8f719e Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Thu, 23 Jul 2015 16:50:49 +0200 Subject: [PATCH] Fix serious regression which broke evaluation of back traces. The data format expects hexadecimal numbers, thus output one. Regression was introduced when I hacked in the 32bit support. --- tracetree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracetree.h b/tracetree.h index 5b697ba..61fbc0f 100644 --- a/tracetree.h +++ b/tracetree.h @@ -76,7 +76,7 @@ public: if (it == parent->children.end() || it->instructionPointer != ip) { index = m_index++; it = parent->children.insert(it, {ip, index, {}}); - fprintf(out, "t %" PRIxPTR " %zu\n", reinterpret_cast(ip), parent->index); + fprintf(out, "t %" PRIxPTR " %zx\n", reinterpret_cast(ip), parent->index); } index = it->index; parent = &(*it); -- 2.7.4