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

Commit 7dd60027 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Checks if /proc/modules exist before calling lsmod."

parents f72ef90e e4eca58f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -690,7 +690,12 @@ static void dumpstate(const std::string& screenshot_path, const std::string& ver

    run_command("PRINTENV", 10, "printenv", NULL);
    run_command("NETSTAT", 10, "netstat", "-n", NULL);
    struct stat s;
    if (stat("/proc/modules", &s) != 0) {
        MYLOGD("Skipping 'lsmod' because /proc/modules does not exist\n");
    } else {
        run_command("LSMOD", 10, "lsmod", NULL);
    }

    do_dmesg();