diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-12-06 22:33:30 -0600 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-07-10 07:09:00 +0200 |
commit | 5264a6eac109b83b799dc45c7cc99729090075b6 (patch) | |
tree | fa3e5b2c274da3ab4eb118173f12b2feebc6ffe1 | |
parent | cf6584a483786992eb919b93eed0653f28208f9e (diff) | |
download | rockbox-5264a6eac109b83b799dc45c7cc99729090075b6.tar.gz rockbox-5264a6eac109b83b799dc45c7cc99729090075b6.zip |
Fix Truncation warning cpufreq-linux.c->cpufreq_available_governors
limit cpu identifer to 0xFFFF
Change-Id: I6fb170aa7ce32b7b5c0366bbd689878bb5069be8
-rw-r--r-- | firmware/target/hosted/cpufreq-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/cpufreq-linux.c b/firmware/target/hosted/cpufreq-linux.c index 55a0bf3292..d622cf1d74 100644 --- a/firmware/target/hosted/cpufreq-linux.c +++ b/firmware/target/hosted/cpufreq-linux.c | |||
@@ -60,7 +60,7 @@ void cpufreq_available_governors(char* governors, int governors_size, int cpu) | |||
60 | snprintf(available_governors_interface, | 60 | snprintf(available_governors_interface, |
61 | sizeof(available_governors_interface), | 61 | sizeof(available_governors_interface), |
62 | "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_available_governors", | 62 | "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_available_governors", |
63 | cpu); | 63 | cpu & 0xFFFF); |
64 | 64 | ||
65 | FILE *f = open_read(available_governors_interface); | 65 | FILE *f = open_read(available_governors_interface); |
66 | if(f == NULL) | 66 | if(f == NULL) |