Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b56bbad6 authored by Elliott Hughes's avatar Elliott Hughes Committed by Automerger Merge Worker
Browse files

Merge "bugreport: fix warning." am: 734f0a2f am: 1a46ec97 am: 40a2807d

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1327474

Change-Id: Id595a8abf5de8be825256ef5b4adbefd561e95d5
parents 873911d7 40a2807d
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -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");