diff options
author | Doug Zongker <dougz@android.com> | 2014-01-21 09:25:41 -0800 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2014-01-21 09:25:41 -0800 |
commit | 19a8e2463c31a97121c35b4666a8e6879fa7e338 (patch) | |
tree | 5ecf7ebd70ebcb712430f83ae78e9e3d625b271b | |
parent | 76adfc5309936a07218ce53b5ab284d5746fa84c (diff) | |
download | bootable_recovery-19a8e2463c31a97121c35b4666a8e6879fa7e338.zip bootable_recovery-19a8e2463c31a97121c35b4666a8e6879fa7e338.tar.gz bootable_recovery-19a8e2463c31a97121c35b4666a8e6879fa7e338.tar.bz2 |
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
-rw-r--r-- | minzip/SysUtil.c | 2 | ||||
-rw-r--r-- | recovery.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/minzip/SysUtil.c b/minzip/SysUtil.c index 2cfa39a..c046a8c 100644 --- a/minzip/SysUtil.c +++ b/minzip/SysUtil.c @@ -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; } diff --git a/recovery.cpp b/recovery.cpp index 43cd9da..0a8c3b5 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -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); |