summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-10-12 11:37:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-10-12 11:37:39 -0700
commit4ccbd5ade5dda03ff9bad54a550fb81330f6913c (patch)
tree8378752bc5f02a675db765941a074d0d25c669d2 /cmds
parentfa7edb48437685dce08570c3ed022b2edd58f31b (diff)
parent2d0dee0e6ccebced9eac11dec24fbb66a1a40b2b (diff)
downloadframeworks_base-4ccbd5ade5dda03ff9bad54a550fb81330f6913c.zip
frameworks_base-4ccbd5ade5dda03ff9bad54a550fb81330f6913c.tar.gz
frameworks_base-4ccbd5ade5dda03ff9bad54a550fb81330f6913c.tar.bz2
am 2d0dee0e: am 0daf3e91: am 7fdd67d3: Merge change I5b650a61 into eclair
Merge commit '2d0dee0e6ccebced9eac11dec24fbb66a1a40b2b' * commit '2d0dee0e6ccebced9eac11dec24fbb66a1a40b2b': dumpstate: Emit a logcat message at beginning and end of execution.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 4dda68c..4a71dc6 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -28,6 +28,10 @@
#include <cutils/sockets.h>
#include "private/android_filesystem_config.h"
+#define LOG_NDEBUG 0
+#define LOG_TAG "dumpstate"
+#include <utils/Log.h>
+
#include "dumpstate.h"
static char* const gzip_args[] = { "gzip", "-6", 0 };
@@ -182,6 +186,8 @@ int main(int argc, char *argv[]) {
pid_t pid;
gid_t groups[] = { AID_LOG, AID_SDCARD_RW };
+ LOGI("begin\n");
+
/* set as high priority, and protect from OOM killer */
setpriority(PRIO_PROCESS, 0, -20);
protect_from_oom_killer();
@@ -332,6 +338,8 @@ int main(int argc, char *argv[]) {
/* so gzip will terminate */
close(STDOUT_FILENO);
+ LOGI("done\n");
+
return 0;
}