PM / devfreq: Reduce log severity for informative message
PATCH 1/1 PM / devfreq: Reduce log severity for informative message
Suppose devfreq_update_status() failure in devfreq_set_target() is not a critical error, reduces the log severity.
Signed-off-by Tzung-Bi Shih <[email protected]>
--- drivers/devfreq/devfreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/devfreq/devfreq.c +2 -2
@@ -382,8 +382,8 @@ static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,devfreq_notify_transition (devfreq, &freqs,DEVFREQ_POSTCHANGE );if (devfreq_update_status (devfreq, new_freq)) -dev_err (&devfreq->dev, -"Couldn't update frequency transition information.\n" ); +dev_warn (&devfreq->dev, +"Couldn't update frequency transition information.\n" ); devfreq->previous_freq = new_freq;
Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog
Chanwoo Choi
maintainerQuoted 14 lines · Tzung-Bi Shih
Suppose
devfreq_update_status()failure indevfreq_set_target()is not a critical error, reduces the log severity.Signed-off-by Tzung-Bi Shih <[email protected]>--- drivers/devfreq/devfreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/devfreq/devfreq.c +0
-0
drivers/devfreq/devfreq.c static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq, · line 389
Quoted 10 lines
drivers/devfreq/devfreq.c +2
-2@@ -382,8 +382,8 @@ static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,devfreq_notify_transition (devfreq, &freqs,DEVFREQ_POSTCHANGE );if (devfreq_update_status (devfreq, new_freq)) -dev_err (&devfreq->dev, -"Couldn't update frequency transition information.\n" ); +dev_warn (&devfreq->dev, +"Couldn't update frequency transition information.\n" ); devfreq->previous_freq = new_freq;
Applied it.
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics