Move DumpWriter to libnetdutils
resolver related component in libnetd_resolv
needs it to easily print dump log.
Bug: 122564854
Test: built, flashed, booted
system/netd/tests/runtests.sh pass
adb shell dumpsys netd, worked fine
Change-Id: Ic97d5f21b738fc3074e9308f4846191e744ed479
diff --git a/server/TrafficController.cpp b/server/TrafficController.cpp
index 9e9e257..74a80fe 100644
--- a/server/TrafficController.cpp
+++ b/server/TrafficController.cpp
@@ -47,10 +47,10 @@
#include "TrafficController.h"
#include "bpf/BpfMap.h"
-#include "DumpWriter.h"
#include "FirewallController.h"
#include "InterfaceController.h"
#include "NetlinkListener.h"
+#include "netdutils/DumpWriter.h"
#include "qtaguid/qtaguid.h"
using namespace android::bpf; // NOLINT(google-build-using-namespace): grandfathered
@@ -60,7 +60,9 @@
using base::StringPrintf;
using base::unique_fd;
+using netdutils::DumpWriter;
using netdutils::extract;
+using netdutils::ScopedIndent;
using netdutils::Slice;
using netdutils::sSyscalls;
using netdutils::Status;