Add git revision to startup message in recovery.log

This should make it easier to find the exact source for
a specific version of the binary.

Change-Id: I7e04dd9a3205cc643150a588b69b4bd691212ecb
This commit is contained in:
that
2016-08-22 16:46:09 +02:00
committed by Dees Troy
parent 908dd25139
commit 0e2140e931
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -110,11 +110,11 @@ int main(int argc, char **argv) {
property_set("ro.twrp.version", TW_VERSION_STR);
time_t StartupTime = time(NULL);
printf("Starting TWRP %s on %s (pid %d)\n", TW_VERSION_STR, ctime(&StartupTime), getpid());
printf("Starting TWRP %s-%s on %s (pid %d)\n", TW_VERSION_STR, TW_GIT_REVISION, ctime(&StartupTime), getpid());
// Load default values to set DataManager constants and handle ifdefs
DataManager::SetDefaultValues();
printf("Starting the UI...");
printf("Starting the UI...\n");
gui_init();
printf("=> Linking mtab\n");
symlink("/proc/mounts", "/etc/mtab");