Skip to content

Commit b7af608

Browse files
vireshkrafaeljw
authored andcommitted
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: 40c3bd4 ("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>
1 parent 6699e91 commit b7af608

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cpufreq/cpufreq_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf)
6262
if (READ_ONCE(stats->reset_pending))
6363
return sprintf(buf, "%d\n", 0);
6464
else
65-
return sprintf(buf, "%d\n", stats->total_trans);
65+
return sprintf(buf, "%u\n", stats->total_trans);
6666
}
6767
cpufreq_freq_attr_ro(total_trans);
6868

0 commit comments

Comments
 (0)