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

Merge commit 'a81d6afd57c175fbe64aeaa0d5894d83201d13ea'

* commit 'a81d6afd57c175fbe64aeaa0d5894d83201d13ea':
  dumpstate: Add the ctime (time the file was harvested out of /proc) to dump.
This commit is contained in:
San Mehat
2009-09-05 15:34:28 -07:00
committed by Android Git Automerger

View File

@@ -333,10 +333,18 @@ int main(int argc, char *argv[]) {
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
DUMP(path);
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);
}
}