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

Commit 1f2a9d0b authored by Bart Van Assche's avatar Bart Van Assche
Browse files

libhealthloop: Terminate KLOG messages with a newline



KLOG messages are sent to /dev/kmsg and hence must be terminated with a
newline character.

Bug: 362986353
Change-Id: I7484b7722f05d8defb9529788324ac51228b7ea6
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent b8e15eba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,9 +183,9 @@ void HealthLoop::UeventInit(void) {
        std::string error_msg = attach_result.error().message();
        error_msg +=
                ". This is expected in recovery mode and also for kernel versions before 5.10.";
        KLOG_WARNING(LOG_TAG, "%s", error_msg.c_str());
        KLOG_WARNING(LOG_TAG, "%s\n", error_msg.c_str());
    } else {
        KLOG_INFO(LOG_TAG, "Successfully attached the BPF filter to the uevent socket");
        KLOG_INFO(LOG_TAG, "Successfully attached the BPF filter to the uevent socket\n");
    }

    if (RegisterEvent(uevent_fd_, &HealthLoop::UeventEvent, EVENT_WAKEUP_FD))