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

Commit f296ce7f authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

shim: Check if dumpsys module has started before invoking am: 0d07ecb0 am:...

shim: Check if dumpsys module has started before invoking am: 0d07ecb0 am: d8858298 am: 9eab71db

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1682670

Change-Id: I345e9e2f8b7d9384f4b195a568288d479bcd1db4
parents 3f97ae74 9eab71db
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -52,7 +52,12 @@ void bluetooth::shim::Dump(int fd, const char** args) {
    }
  }
  if (bluetooth::shim::is_gd_stack_started_up()) {
    if (bluetooth::shim::is_gd_dumpsys_module_started()) {
      bluetooth::shim::GetDumpsys()->Dump(fd, args);
    } else {
      dprintf(fd, "%s NOTE: gd dumpsys module not loaded or started\n",
              kModuleName);
    }
  } else {
    dprintf(fd, "%s gd stack is enabled but not started\n", kModuleName);
  }