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

Commit 0d07ecb0 authored by Chris Manton's avatar Chris Manton
Browse files

shim: Check if dumpsys module has started before invoking

Bug: 182544206
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I67c83b36a7a9e5ac476d47760562d78bc1c95d36
parent cd30b100
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);
  }