From: Milian Wolff Date: Thu, 23 Jul 2015 14:50:49 +0000 (+0200) Subject: Fix serious regression which broke evaluation of back traces. X-Git-Tag: submit/tizen/20180620.112952^2~301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2c55cfc8a3b82b7e1b6431409ed22575c8f719e;p=sdk%2Ftools%2Fheaptrack.git 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. --- 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);