log extra info for debugging

Make recovery log its PID, and when we use a block map file, log how
many ranges it contains.

Change-Id: I1b4299f8163af68a770b48c029ae25e6cb45d26b
This commit is contained in:
Doug Zongker
2014-01-21 09:25:41 -08:00
parent 76adfc5309
commit 19a8e2463c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -153,6 +153,8 @@ static int sysMapBlockFile(FILE* mapf, MemMapping* pMap)
pMap->addr = reserve;
pMap->length = size;
LOGI("mmapped %d ranges\n", range_count);
return 0;
}
+1 -1
View File
@@ -938,7 +938,7 @@ main(int argc, char **argv) {
return 0;
}
printf("Starting recovery on %s", ctime(&start));
printf("Starting recovery (pid %d) on %s", getpid(), ctime(&start));
load_volume_table();
ensure_path_mounted(LAST_LOG_FILE);