From 3657ee542987ed5299f1df26185b34db7db50c63 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 31 Jan 2020 12:09:15 -0800 Subject: dumpsys: use std::c* instead of TextOutput TextOutput implementation has some static variables contributing a small amount to private dirty memory, but we don't need it. Bug: 148676615 Test: dumpsys_test Change-Id: I2133b136f5d1265670b7f94d6e2413caf88a2149 --- cmds/dumpsys/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmds/dumpsys/main.cpp') diff --git a/cmds/dumpsys/main.cpp b/cmds/dumpsys/main.cpp index 8ba0eba0fa..fa4cc97b91 100644 --- a/cmds/dumpsys/main.cpp +++ b/cmds/dumpsys/main.cpp @@ -21,10 +21,9 @@ #include "dumpsys.h" #include -#include +#include #include -#include using namespace android; @@ -34,7 +33,7 @@ int main(int argc, char* const argv[]) { fflush(stdout); if (sm == nullptr) { ALOGE("Unable to get default service manager!"); - aerr << "dumpsys: Unable to get default service manager!" << endl; + std::cerr << "dumpsys: Unable to get default service manager!" << std::endl; return 20; } -- cgit v1.2.3-59-g8ed1b