From 0156fcf7133a83932d79f2e5099f0fccc8e41e0e Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Fri, 25 Feb 2022 17:39:15 +0800 Subject: [PATCH] let hal to control the log level why: Let focal's hal to control the log level Change-Id: I922c39340bab392a51f2fb08d7a28b4f594713e8 Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2201521 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- drivers/input/misc/focal_fps_mmi/ff_ctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/focal_fps_mmi/ff_ctl.c b/drivers/input/misc/focal_fps_mmi/ff_ctl.c index f594fdc86a42..3b4c3f78fde8 100644 --- a/drivers/input/misc/focal_fps_mmi/ff_ctl.c +++ b/drivers/input/misc/focal_fps_mmi/ff_ctl.c @@ -367,7 +367,7 @@ static int ff_ctl_fb_notifier_callback(struct notifier_block *nb, unsigned long #else /* CONFIG_DRM_PANEL_NOTIFICATIONS */ #if defined(CONFIG_PANEL_NOTIFICATIONS) char *uevent_env[2]; - FF_LOGD(" received a panel notification %d \n", (int)action); + FF_LOGI(" received a panel notification %d \n", (int)action); switch(action) { case PANEL_EVENT_DISPLAY_ON: uevent_env[0] = "FF_SCREEN_ON"; @@ -387,7 +387,7 @@ static int ff_ctl_fb_notifier_callback(struct notifier_block *nb, unsigned long if(action == PANEL_EVENT_DISPLAY_ON || action== PANEL_EVENT_DISPLAY_OFF) { uevent_env[1] = NULL; kobject_uevent_env(&g_context->miscdev.this_device->kobj, KOBJ_CHANGE, uevent_env); - FF_LOGD("'%s' leave %s.", __func__,uevent_env[0] ); + FF_LOGI("'%s' leave %s.", __func__,uevent_env[0] ); } #else struct fb_event *event; @@ -728,7 +728,7 @@ static long ff_ctl_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) g_config = &driver_config; /* Take logging level effect. */ - g_log_level = 3;//g_config->log_level; + g_log_level = g_config->log_level; break; } case FF_IOC_GET_VERSION: {