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/TcpSocketMonitor.h b/server/TcpSocketMonitor.h
index 98cd766..43c2c04 100644
--- a/server/TcpSocketMonitor.h
+++ b/server/TcpSocketMonitor.h
@@ -94,7 +94,7 @@
std::mutex mLock;
// Used by the polling thread for sleeping between poll operations.
std::condition_variable mCv;
- // The thread that polls sock_diag continously.
+ // The thread that polls sock_diag continuously.
std::thread mPollingThread;
// The duration of a sleep between polls. Can be updated by the instance owner for dynamically
// adjusting the polling rate.
@@ -106,7 +106,7 @@
// True while the polling thread should poll.
bool mIsRunning GUARDED_BY(mLock);
// Map of SocketEntry structs keyed by socket cookie. This map tracks per-socket data needed for
- // computing diffs between sock_diag dumps. Entries for closed sockets are continously cleaned
+ // computing diffs between sock_diag dumps. Entries for closed sockets are continuously cleaned
// after every dump operation based on timestamps of last updates.
std::unordered_map<uint64_t, SocketEntry> mSocketEntries GUARDED_BY(mLock);
// Map of TcpStats entries aggregated per network and keyed per network id.