summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2020-10-12 10:20:07 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-10-12 12:32:10 +0200
commitb7af6080a3d2d35a410db3eeb162e1ab49c4d27f (patch)
tree36598cdcb9f472f192c728b0f8b14031f53153cf /drivers/cpufreq
parent6699e91c071715efefd7d5709755e557e948fdd9 (diff)
downloadlinux-b7af6080a3d2d35a410db3eeb162e1ab49c4d27f.tar.bz2
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>
Diffstat (limited to 'drivers/cpufreq')
-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);