From e25908bd87aa4abb5cd94ef3892a69e01d4c75ab Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 21 Jun 2010 08:16:19 -0700 Subject: [PATCH] logging --- extendedcommands.c | 2 ++ recovery.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/extendedcommands.c b/extendedcommands.c index 3bd5721..5b5f5a2 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -598,6 +598,8 @@ int run_script(char* filename) // supposedly not necessary, but let's be safe. script_data[script_len] = '\0'; fclose(file); + LOGI("Running script:\n"); + LOGI("\n%s\n", script_data); int ret = run_script_from_buffer(script_data, script_len, filename); free(script_data); diff --git a/recovery.c b/recovery.c index 31d41f1..b0f217e 100644 --- a/recovery.c +++ b/recovery.c @@ -478,6 +478,8 @@ print_property(const char *key, const char *name, void *cookie) int main(int argc, char **argv) { + LOGI(EXPAND(RECOVERY_VERSION)"\n"); + if (strstr(argv[0], "recovery") == NULL) { if (strstr(argv[0], "flash_image") != NULL)