Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-core: Commit

system/core


Commit MetaInfo

Revisión059125ac362d52cccd54b9b1a43b336584d19f16 (tree)
Tiempo2019-03-28 19:36:05
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

ueventd: fix the buggy logging

LOG(xxx) is totally broken. Use KLOG_xxx to actually show the log.

Cambiar Resumen

Diferencia incremental

--- a/init/ueventd.cpp
+++ b/init/ueventd.cpp
@@ -31,6 +31,7 @@
3131 #include <android-base/logging.h>
3232 #include <android-base/properties.h>
3333 #include <fstab/fstab.h>
34+#include <cutils/klog.h>
3435 #include <selinux/android.h>
3536 #include <selinux/selinux.h>
3637
@@ -212,7 +213,7 @@ void ColdBoot::Run() {
212213 WaitForSubProcesses();
213214
214215 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);
216217 }
217218
218219 DeviceHandler CreateDeviceHandler() {
Show on old repository browser