summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate/dumpstate.c
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-02-10 01:26:58 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-10 01:26:58 +0000
commit8511b3ae5eb42810f97f7c3e993d7f80d3393b83 (patch)
tree94ada1c69a6aabf26270e6ce3a67c13feb0e8ae4 /cmds/dumpstate/dumpstate.c
parent50ad67e4ce6b07b5f5f4649ace81ed9a8b2c2eac (diff)
parentff4a4dc7e6e3ead12020b4dc17548d767a419dde (diff)
downloadframeworks_native-8511b3ae5eb42810f97f7c3e993d7f80d3393b83.zip
frameworks_native-8511b3ae5eb42810f97f7c3e993d7f80d3393b83.tar.gz
frameworks_native-8511b3ae5eb42810f97f7c3e993d7f80d3393b83.tar.bz2
Merge "Remove -z option."
Diffstat (limited to 'cmds/dumpstate/dumpstate.c')
-rw-r--r--cmds/dumpstate/dumpstate.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index dd8303e..1d33d71 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -366,7 +366,6 @@ static void usage() {
fprintf(stderr, "usage: dumpstate [-b soundfile] [-e soundfile] [-o file [-d] [-p] [-z]] [-s] [-q]\n"
" -o: write to file (instead of stdout)\n"
" -d: append date to filename (requires -o)\n"
- " -z: gzip output (requires -o)\n"
" -p: capture screenshot to filename.png (requires -o)\n"
" -s: write output to control socket (for init)\n"
" -b: play sound file instead of vibrate, at beginning of job\n"
@@ -389,7 +388,6 @@ static void vibrate(FILE* vibrator, int ms) {
int main(int argc, char *argv[]) {
struct sigaction sigact;
int do_add_date = 0;
- int do_compress = 0;
int do_vibrate = 1;
char* use_outfile = 0;
int use_socket = 0;
@@ -429,7 +427,6 @@ int main(int argc, char *argv[]) {
case 's': use_socket = 1; break;
case 'v': break; // compatibility no-op
case 'q': do_vibrate = 0; break;
- case 'z': do_compress = 6; break;
case 'p': do_fb = 1; break;
case 'B': do_broadcast = 1; break;
case '?': printf("\n");
@@ -524,10 +521,9 @@ int main(int argc, char *argv[]) {
strlcat(screenshot_path, ".png", sizeof(screenshot_path));
}
strlcat(path, ".txt", sizeof(path));
- if (do_compress) strlcat(path, ".gz", sizeof(path));
strlcpy(tmp_path, path, sizeof(tmp_path));
strlcat(tmp_path, ".tmp", sizeof(tmp_path));
- gzip_pid = redirect_to_file(stdout, tmp_path, do_compress);
+ redirect_to_file(stdout, tmp_path);
}
dumpstate();