summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2020-10-12 06:50:07 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-10-12 12:32:10 +0200
commitb7af6080a3d2d35a410db3eeb162e1ab49c4d27f (patch)
tree36598cdcb9f472f192c728b0f8b14031f53153cf
parentarm: disable frequency invariance for CONFIG_BL_SWITCHER (diff)
downloadlinux-b7af6080a3d2d35a410db3eeb162e1ab49c4d27f.tar.xz
linux-b7af6080a3d2d35a410db3eeb162e1ab49c4d27f.zip
cpufreq: stats: Fix string format specifier mismatch
Fix following warning: drivers/cpufreq/cpufreq_stats.c:63:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int' Fixes: 40c3bd4cfa6f ("cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/cpufreq/cpufreq_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index 1b1389face85..6cd5c8ab5d49 100644
--- a/drivers/cpufreq/cpufreq_stats.c
+++ b/drivers/cpufreq/cpufreq_stats.c
@@ -62,7 +62,7 @@ static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf)
if (READ_ONCE(stats->reset_pending))
return sprintf(buf, "%d\n", 0);
else
- return sprintf(buf, "%d\n", stats->total_trans);
+ return sprintf(buf, "%u\n", stats->total_trans);
}
cpufreq_freq_attr_ro(total_trans);