Fix Truncation warning cpufreq-linux.c->cpufreq_available_governors
limit cpu identifer to 0xFFFF Change-Id: I6fb170aa7ce32b7b5c0366bbd689878bb5069be8
This commit is contained in:
parent
cf6584a483
commit
5264a6eac1
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ void cpufreq_available_governors(char* governors, int governors_size, int cpu)
|
|||
snprintf(available_governors_interface,
|
||||
sizeof(available_governors_interface),
|
||||
"/sys/devices/system/cpu/cpu%d/cpufreq/scaling_available_governors",
|
||||
cpu);
|
||||
cpu & 0xFFFF);
|
||||
|
||||
FILE *f = open_read(available_governors_interface);
|
||||
if(f == NULL)
|
||||
|
|
Loading…
Reference in a new issue