Add basic logging infrastructure for bugreports
Test: as follows
- built, flashed, booted
- "adb shell dumpsys netd" shows logs
- tests/runtests.sh passes
Change-Id: I0e44da7f9a9cc53074ffc396b958e9e2dbcd2603
diff --git a/server/TetherController.h b/server/TetherController.h
index e163ae8..ce2d964 100644
--- a/server/TetherController.h
+++ b/server/TetherController.h
@@ -29,8 +29,6 @@
namespace android {
namespace net {
-using android::netdutils::StatusOr;
-
class TetherController {
private:
struct ForwardingDownstream {
@@ -66,8 +64,7 @@
int sendAllState(int daemonFd) const;
} mDnsmasqState{};
-public:
-
+ public:
TetherController();
~TetherController() = default;
@@ -122,7 +119,7 @@
typedef std::vector<TetherStats> TetherStatsList;
- StatusOr<TetherStatsList> getTetherStats();
+ netdutils::StatusOr<TetherStatsList> getTetherStats();
/*
* extraProcessingInfo: contains raw parsed data, and error info.