OSDN Git Service

ext4_utils: Change to base/logging in ext4_crypt_init_extensions
authorWei Wang <wvw@google.com>
Fri, 20 Jan 2017 22:01:52 +0000 (14:01 -0800)
committerWei Wang <wvw@google.com>
Fri, 20 Jan 2017 22:09:03 +0000 (14:09 -0800)
Test: on device
Bug: 34256270
Change-Id: Idd560ff5662c6c2d646a80f47b4ad8a6bf9a0970

ext4_utils/ext4_crypt_init_extensions.cpp

index ddbbd9a..e219d2f 100644 (file)
@@ -28,7 +28,6 @@
 #include <android-base/file.h>
 #include <android-base/logging.h>
 #include <android-base/stringprintf.h>
-#include <cutils/klog.h>
 #include <cutils/properties.h>
 #include <cutils/sockets.h>
 #include <logwrap/logwrap.h>
@@ -123,7 +122,7 @@ int e4crypt_set_directory_policy(const char* dir)
         LOG(ERROR) << "Cannot read mode";
     }
 
-    KLOG_INFO(TAG, "Setting policy on %s\n", dir);
+    LOG(INFO) << "Setting policy on " << dir;
     int result = e4crypt_policy_ensure(dir, policy.c_str(), policy.length(),
                                        contents_encryption_mode.c_str());
     if (result) {