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

Commit cb944b2d authored by Michael Bestas's avatar Michael Bestas
Browse files

healthd: Update logging for 5.1

* According to ebeb0c0e
  logs should be LOGW to appear in the kernel messages

Change-Id: I4f6c2772fe76a84383a1e0bc461df950e7551923
parent c8cafe05
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@ char *locale;
#define CHARGING_ENABLED_PATH   "/sys/class/power_supply/battery/charging_enabled"
#endif

#define LOGI(x...) do { KLOG_INFO("charger", x); } while (0)
#define LOGE(x...) do { KLOG_ERROR("charger", x); } while (0)
#define LOGW(x...) do { KLOG_WARNING("charger", x); } while (0)
#define LOGV(x...) do { KLOG_DEBUG("charger", x); } while (0)
@@ -273,7 +272,7 @@ static int set_backlight_on(void)

    if (access(BACKLIGHT_PATH, R_OK | W_OK) != 0)
    {
        LOGI("Backlight control not support\n");
        LOGW("Backlight control not support\n");
        return 0;
    }

@@ -906,7 +905,7 @@ void healthd_mode_charger_init(struct healthd_config* config)
        ret = read_file_int(CHARGING_ENABLED_PATH, &charging_enabled);
        if (!ret && !charging_enabled) {
            /* if charging is disabled, reboot and exit power off charging */
            LOGI("android charging is disabled, exit!\n");
            LOGW("android charging is disabled, exit!\n");
            android_reboot(ANDROID_RB_RESTART, 0, 0);
        }
    }