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

Commit a4eb91da authored by San Mehat's avatar San Mehat
Browse files

dumpstate: Add the ctime (time the file was harvested out of /proc) to dump.



Signed-off-by: default avatarSan Mehat <san@google.com>
parent 0b98c944
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -336,7 +336,15 @@ static void dump_kernel_log(const char *path, const char *title)
    printf("------ KERNEL %s LOG ------\n", title);
    if (access(path, R_OK) < 0)
        printf("%s: %s\n", path, strerror(errno));
    else {
        struct stat sbuf;

        if (stat(path, &sbuf) < 0)
            printf("%s: stat failed (%s)\n", path, strerror(errno));
        else
            printf("Harvested %s", ctime(&sbuf.st_ctime));
    
        DUMP(path);
    }
}