system/core
Révision | 059125ac362d52cccd54b9b1a43b336584d19f16 (tree) |
---|---|
l'heure | 2019-03-28 19:36:05 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
ueventd: fix the buggy logging
LOG(xxx) is totally broken. Use KLOG_xxx to actually show the log.
@@ -31,6 +31,7 @@ | ||
31 | 31 | #include <android-base/logging.h> |
32 | 32 | #include <android-base/properties.h> |
33 | 33 | #include <fstab/fstab.h> |
34 | +#include <cutils/klog.h> | |
34 | 35 | #include <selinux/android.h> |
35 | 36 | #include <selinux/selinux.h> |
36 | 37 |
@@ -212,7 +213,7 @@ void ColdBoot::Run() { | ||
212 | 213 | WaitForSubProcesses(); |
213 | 214 | |
214 | 215 | close(open(COLDBOOT_DONE, O_WRONLY | O_CREAT | O_CLOEXEC, 0000)); |
215 | - LOG(INFO) << "Coldboot took " << cold_boot_timer.duration().count() / 1000.0f << " seconds"; | |
216 | + KLOG_INFO("Coldboot", "took %f seconds", cold_boot_timer.duration().count() / 1000.0f); | |
216 | 217 | } |
217 | 218 | |
218 | 219 | DeviceHandler CreateDeviceHandler() { |