diff options
| author | 2020-06-10 15:16:40 +0000 | |
|---|---|---|
| committer | 2020-06-10 15:16:40 +0000 | |
| commit | 1a46ec978ae0ebfdeadcdc12367f7a8a46bb1539 (patch) | |
| tree | 9d59665b2981fa395f0f0b9f78207b5a08663b60 | |
| parent | 49990b462a9d5bd93cb2bf7e9f5793cc42875f39 (diff) | |
| parent | 734f0a2fa11bf0c826216202a45aa1dda207f9d8 (diff) | |
Merge "bugreport: fix warning." am: 734f0a2fa1
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1327474
Change-Id: Ibb57ddc1acdb5a4b2816803c0a2bb9af25154e8b
| -rw-r--r-- | cmds/bugreport/bugreport.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cmds/bugreport/bugreport.cpp b/cmds/bugreport/bugreport.cpp index 840ae473bc..258b36721b 100644 --- a/cmds/bugreport/bugreport.cpp +++ b/cmds/bugreport/bugreport.cpp @@ -27,12 +27,19 @@ // dumpstate, then connect to the dumpstate local client to read the // output. All of the dumpstate output is written to stdout, including // any errors encountered while reading/writing the output. -int main() { - +int main(int argc, char* /*argv*/[]) { fprintf(stderr, "=============================================================================\n"); - fprintf(stderr, "WARNING: flat bugreports are deprecated, use adb bugreport <zip_file> instead\n"); + fprintf(stderr, "WARNING: Flat (text file, non-zipped) bugreports are deprecated.\n"); + fprintf(stderr, "WARNING: Please generate zipped bugreports instead.\n"); + fprintf(stderr, "WARNING: On the host use: adb bugreport filename.zip\n"); + fprintf(stderr, "WARNING: On the device use: bugreportz filename.zip\n"); fprintf(stderr, "=============================================================================\n\n\n"); + if (argc != 1) { + fprintf(stderr, "usage: bugreport\n"); + exit(1); + } + // Start the dumpstate service. property_set("ctl.start", "dumpstate"); |