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

Commit 09fde8df authored by Devin Moore's avatar Devin Moore
Browse files

Dump /proc/bootconfig in dumpstate

These bootconfig arguments were previously in the kernel cmdline, so we
now dump the contents next to the kernel cmdline.

Test: adb shell dumpstate
Bug: 274528501
Change-Id: Ic7ee96c6bef60f9c64474669cce4b01e314db905
parent 04d05a69
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -814,6 +814,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());