diff options
author | 2016-09-29 08:08:05 -0700 | |
---|---|---|
committer | 2016-12-22 13:55:11 -0800 | |
commit | a5e161b1207ef447a51e99856097d69d4a6111e1 (patch) | |
tree | d733d77cbafe352fd20935eab60435a365beb8af /cmds/dumpstate/utils.cpp | |
parent | c47aa53c84cc7ac0194057c3afac005437d5ae2b (diff) |
Replace cutils/log.h and rationalize log/log.h and android/log.h
- cutils/log.h treat as deprecated and lead by example
- android/log.h to be used instead of log/log.h if required
- add system includes that are assumed as side effects of log.h
- modules that use SLOG should use SLOG for all logging (installd)
- define LOG_TAG first
- remove logging infrastructure if not used
Test: build
Bug: 31289077
Change-Id: Iea147a0104c7ab7f12451304131d6500f42141e7
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
-rw-r--r-- | cmds/dumpstate/utils.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index 0d9cce28bb..c53b0b0624 100644 --- a/cmds/dumpstate/utils.cpp +++ b/cmds/dumpstate/utils.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#define LOG_TAG "dumpstate" + #include <dirent.h> #include <errno.h> #include <fcntl.h> @@ -23,24 +25,23 @@ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> -#include <string> #include <string.h> #include <sys/capability.h> #include <sys/inotify.h> +#include <sys/klog.h> +#include <sys/prctl.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/wait.h> -#include <sys/klog.h> #include <time.h> #include <unistd.h> -#include <vector> -#include <sys/prctl.h> -#define LOG_TAG "dumpstate" +#include <string> +#include <vector> +#include <android/log.h> #include <android-base/file.h> #include <cutils/debugger.h> -#include <cutils/log.h> #include <cutils/properties.h> #include <cutils/sockets.h> #include <private/android_filesystem_config.h> |