Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a17b52c authored by Ben Cheng's avatar Ben Cheng Committed by Android Git Automerger
Browse files

am fbafa63b: Merge "Print the revision number in the tombstone file." into jb-mr1-dev

* commit 'fbafa63b':
  Print the revision number in the tombstone file.
parents 400b89b2 fbafa63b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -128,6 +128,15 @@ static const char *get_sigcode(int signo, int code)
    return "?";
}

static void dump_revision_info(log_t* log)
{
    char revision[PROPERTY_VALUE_MAX];

    property_get("ro.revision", revision, "unknown");

    _LOG(log, false, "Revision: '%s'\n", revision);
}

static void dump_build_info(log_t* log)
{
    char fingerprint[PROPERTY_VALUE_MAX];
@@ -599,6 +608,7 @@ static bool dump_crash(log_t* log, pid_t pid, pid_t tid, int signal,
    _LOG(log, false,
            "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n");
    dump_build_info(log);
    dump_revision_info(log);
    dump_thread_info(log, pid, tid, true);
    if(signal) {
        dump_fault_addr(log, tid, signal);