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

Commit 1f05ea06 authored by Devin Moore's avatar Devin Moore Committed by Automerger Merge Worker
Browse files

Merge "Dump /proc/bootconfig in dumpstate" am: adbac998 am: 4e198eef am:...

Merge "Dump /proc/bootconfig in dumpstate" am: adbac998 am: 4e198eef am: 095f56df am: 1c8cc804

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2499398



Change-Id: I33d526a08bf49f89075ca7d0da4d396c123a1081
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6eed0bbc 1c8cc804
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -816,6 +816,8 @@ void Dumpstate::PrintHeader() const {
    printf("Kernel: ");
    DumpFileToFd(STDOUT_FILENO, "", "/proc/version");
    printf("Command line: %s\n", strtok(cmdline_buf, "\n"));
    printf("Bootconfig: ");
    DumpFileToFd(STDOUT_FILENO, "", "/proc/bootconfig");
    printf("Uptime: ");
    RunCommandToFd(STDOUT_FILENO, "", {"uptime", "-p"},
                   CommandOptions::WithTimeout(1).Always().Build());