IptablesRestoreController - work around for ALOGE truncation
Test: builds, atest, log at logcat
Bug: 157777758
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic9a4a8228028228020bea3101dca3d47be0e6ab5
Merged-In: Ic9a4a8228028228020bea3101dca3d47be0e6ab5
diff --git a/server/IptablesRestoreController.cpp b/server/IptablesRestoreController.cpp
index 8339177..10cedfa 100644
--- a/server/IptablesRestoreController.cpp
+++ b/server/IptablesRestoreController.cpp
@@ -258,13 +258,12 @@
return;
}
- ALOGE("iptables error:\n"
- "------- COMMAND -------\n"
- "%s\n"
- "------- ERROR -------\n"
- "%s"
- "----------------------\n",
- command.c_str(), process->errBuf.c_str());
+ ALOGE("iptables error:\n");
+ ALOGE("------- COMMAND -------\n");
+ ALOGE("%s\n", command.c_str());
+ ALOGE("------- ERROR -------\n");
+ ALOGE("%s", process->errBuf.c_str());
+ ALOGE("----------------------\n");
process->errBuf.clear();
}