Merge change I5b650a61 into eclair
* changes: dumpstate: Emit a logcat message at beginning and end of execution.
This commit is contained in:
@@ -28,6 +28,10 @@
|
|||||||
#include <cutils/sockets.h>
|
#include <cutils/sockets.h>
|
||||||
#include "private/android_filesystem_config.h"
|
#include "private/android_filesystem_config.h"
|
||||||
|
|
||||||
|
#define LOG_NDEBUG 0
|
||||||
|
#define LOG_TAG "dumpstate"
|
||||||
|
#include <utils/Log.h>
|
||||||
|
|
||||||
#include "dumpstate.h"
|
#include "dumpstate.h"
|
||||||
|
|
||||||
static char* const gzip_args[] = { "gzip", "-6", 0 };
|
static char* const gzip_args[] = { "gzip", "-6", 0 };
|
||||||
@@ -182,6 +186,8 @@ int main(int argc, char *argv[]) {
|
|||||||
pid_t pid;
|
pid_t pid;
|
||||||
gid_t groups[] = { AID_LOG, AID_SDCARD_RW };
|
gid_t groups[] = { AID_LOG, AID_SDCARD_RW };
|
||||||
|
|
||||||
|
LOGI("begin\n");
|
||||||
|
|
||||||
/* set as high priority, and protect from OOM killer */
|
/* set as high priority, and protect from OOM killer */
|
||||||
setpriority(PRIO_PROCESS, 0, -20);
|
setpriority(PRIO_PROCESS, 0, -20);
|
||||||
protect_from_oom_killer();
|
protect_from_oom_killer();
|
||||||
@@ -332,6 +338,8 @@ int main(int argc, char *argv[]) {
|
|||||||
/* so gzip will terminate */
|
/* so gzip will terminate */
|
||||||
close(STDOUT_FILENO);
|
close(STDOUT_FILENO);
|
||||||
|
|
||||||
|
LOGI("done\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user