Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7823e124 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

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 possible
- add system includes that are assumed as side effects
- define LOG_TAG first

Test: compile
Bug: 31289077
Bug: 30465923
Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd
parent 5cfc1c05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,9 +39,9 @@
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <cutils/fs.h>
#include <cutils/log.h>               // TODO: Move everything to base/logging.
#include <cutils/properties.h>
#include <cutils/sched_policy.h>
#include <log/log.h>               // TODO: Move everything to base/logging.
#include <logwrap/logwrap.h>
#include <private/android_filesystem_config.h>
#include <selinux/android.h>
+1 −1
Original line number Diff line number Diff line
@@ -27,13 +27,13 @@
#include <sys/wait.h>
#include <unistd.h>

#include <android/log.h>               // TODO: Move everything to base/logging.
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <cutils/properties.h>
#include <cutils/sched_policy.h>
#include <log/log.h>               // TODO: Move everything to base/logging.
#include <private/android_filesystem_config.h>
#include <system/thread_defs.h>

+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>

#include <android/log.h>              // TODO: Move everything to base::logging.
#include <log/log.h>              // TODO: Move everything to base::logging.

#include <globals.h>
#include <installd_constants.h>
+1 −1
Original line number Diff line number Diff line
@@ -27,13 +27,13 @@
#include <sys/stat.h>
#include <sys/wait.h>

#include <android/log.h>
#include <android-base/logging.h>
#include <android-base/macros.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <cutils/fs.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>

#include "InstalldNativeService.h"
+1 −1
Original line number Diff line number Diff line
@@ -30,10 +30,10 @@
#include <sys/statfs.h>
#endif

#include <android/log.h>
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <cutils/fs.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>

#include "globals.h"  // extern variables.
Loading