From 2a0279924b973308cb2a95cc92ab62b09b54cb3f Mon Sep 17 00:00:00 2001 From: Scott Mertz Date: Wed, 25 May 2016 15:47:42 -0700 Subject: debuggerd: add CM version to tombstones Change-Id: I7822a2e133a2f326ad2d8da8f79b0064344d59bf --- debuggerd/tombstone.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index aeffc66..0c9fc49 100644 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -167,10 +167,13 @@ static const char* get_sigcode(int signo, int code) { static void dump_header_info(log_t* log) { char fingerprint[PROPERTY_VALUE_MAX]; char revision[PROPERTY_VALUE_MAX]; + char cm_version[PROPERTY_VALUE_MAX]; + property_get("ro.cm.version", cm_version, "unknown"); property_get("ro.build.fingerprint", fingerprint, "unknown"); property_get("ro.revision", revision, "unknown"); + _LOG(log, logtype::HEADER, "CM Version: '%s'\n", cm_version); _LOG(log, logtype::HEADER, "Build fingerprint: '%s'\n", fingerprint); _LOG(log, logtype::HEADER, "Revision: '%s'\n", revision); _LOG(log, logtype::HEADER, "ABI: '%s'\n", ABI_STRING); -- cgit v1.1