Deprecate <cutils/log.h> and <utils/Log.h>
This commit replaces <cutils/log.h> and <utils/Log.h> with <log/log.h>. Background: <cutils/log.h> has been moved to <log/log.h> for a while. Both <cutils/log.h> and <utils/Log.h> simply includes <log/log.h> for backward compatibility. This commit is a part of the effort to remove <cutils/log.h> and <utils/Log.h> from the source tree eventually. Bug: 78370064 Test: lunch aosp_walleye-userdebug && cd system/vold && mma Change-Id: I1f9b7b132f9c35469e97556a30b521cc47e829d7 Merged-In: I1f9b7b132f9c35469e97556a30b521cc47e829d7
This commit is contained in:
parent
bf319c4e70
commit
7e0af8e480
2 changed files with 6 additions and 8 deletions
|
@ -36,13 +36,13 @@
|
||||||
#include <android-base/properties.h>
|
#include <android-base/properties.h>
|
||||||
#include <bootloader_message/bootloader_message.h>
|
#include <bootloader_message/bootloader_message.h>
|
||||||
#include <cutils/android_reboot.h>
|
#include <cutils/android_reboot.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
#include <ext4_utils/ext4.h>
|
#include <ext4_utils/ext4.h>
|
||||||
#include <ext4_utils/ext4_utils.h>
|
#include <ext4_utils/ext4_utils.h>
|
||||||
#include <f2fs_sparseblock.h>
|
#include <f2fs_sparseblock.h>
|
||||||
#include <fs_mgr.h>
|
#include <fs_mgr.h>
|
||||||
#include <hardware_legacy/power.h>
|
#include <hardware_legacy/power.h>
|
||||||
|
#include <log/log.h>
|
||||||
#include <logwrap/logwrap.h>
|
#include <logwrap/logwrap.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
|
|
12
fs/Ext4.cpp
12
fs/Ext4.cpp
|
@ -35,12 +35,9 @@
|
||||||
|
|
||||||
#include <linux/kdev_t.h>
|
#include <linux/kdev_t.h>
|
||||||
|
|
||||||
#define LOG_TAG "Vold"
|
|
||||||
|
|
||||||
#include <android-base/logging.h>
|
#include <android-base/logging.h>
|
||||||
#include <android-base/properties.h>
|
#include <android-base/properties.h>
|
||||||
#include <android-base/stringprintf.h>
|
#include <android-base/stringprintf.h>
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
#include <logwrap/logwrap.h>
|
#include <logwrap/logwrap.h>
|
||||||
#include <selinux/selinux.h>
|
#include <selinux/selinux.h>
|
||||||
|
@ -101,7 +98,8 @@ status_t Check(const std::string& source, const std::string& target) {
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ALOGW("%s(): umount(%s)=%d: %s\n", __func__, c_target, result, strerror(errno));
|
LOG(WARNING) << __func__ << "(): umount(" << c_target << ")=" << result << ": "
|
||||||
|
<< strerror(errno);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,10 +109,10 @@ status_t Check(const std::string& source, const std::string& target) {
|
||||||
* (e.g. recent SDK system images). Detect these and skip the check.
|
* (e.g. recent SDK system images). Detect these and skip the check.
|
||||||
*/
|
*/
|
||||||
if (access(kFsckPath, X_OK)) {
|
if (access(kFsckPath, X_OK)) {
|
||||||
ALOGD("Not running %s on %s (executable not in system image)\n",
|
LOG(DEBUG) << "Not running " << kFsckPath << " on " << c_source
|
||||||
kFsckPath, c_source);
|
<< " (executable not in system image)";
|
||||||
} else {
|
} else {
|
||||||
ALOGD("Running %s on %s\n", kFsckPath, c_source);
|
LOG(DEBUG) << "Running " << kFsckPath << " on " << c_source;
|
||||||
|
|
||||||
std::vector<std::string> cmd;
|
std::vector<std::string> cmd;
|
||||||
cmd.push_back(kFsckPath);
|
cmd.push_back(kFsckPath);
|
||||||
|
|
Loading…
Reference in a new issue