diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-17 11:28:55 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-17 23:42:05 +0200 |
commit | 50c641406c6adaeef6c4d4328c5dfa80ea8b5017 (patch) | |
tree | c4c0419cb8056ba700e46a72aacbd23fd1a0fc10 | |
parent | b09501019dd567fb4c1044c4e8f5ec2cbf62db59 (diff) | |
download | cpufrequtils-50c641406c6adaeef6c4d4328c5dfa80ea8b5017.tar.gz |
whitespace fixes
remove trailing whitespace
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | lib/cpufreq.c | 4 | ||||
-rw-r--r-- | lib/sysfs.c | 8 | ||||
-rw-r--r-- | utils/info.c | 18 | ||||
-rw-r--r-- | utils/set.c | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/lib/cpufreq.c b/lib/cpufreq.c index 32c078d..7cd228c 100644 --- a/lib/cpufreq.c +++ b/lib/cpufreq.c @@ -37,8 +37,8 @@ unsigned long cpufreq_get_freq_hardware(unsigned int cpu) return (ret); } -int cpufreq_get_hardware_limits(unsigned int cpu, - unsigned long *min, +int cpufreq_get_hardware_limits(unsigned int cpu, + unsigned long *min, unsigned long *max) { int ret; diff --git a/lib/sysfs.c b/lib/sysfs.c index e83d318..45bda89 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -29,7 +29,7 @@ unsigned int sysfs_read_file(unsigned int cpu, const char *fname, char *buf, siz int fd; size_t numread; - snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", + snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", cpu, fname); if ( ( fd = open(path, O_RDONLY) ) == -1 ) @@ -56,7 +56,7 @@ unsigned int sysfs_write_file(unsigned int cpu, const char *fname, const char *v int fd; size_t numwrite; - snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", + snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", cpu, fname); if ( ( fd = open(path, O_WRONLY) ) == -1 ) @@ -212,8 +212,8 @@ unsigned long sysfs_get_freq_hardware(unsigned int cpu) return sysfs_get_one_value(cpu, CPUINFO_CUR_FREQ); } -int sysfs_get_hardware_limits(unsigned int cpu, - unsigned long *min, +int sysfs_get_hardware_limits(unsigned int cpu, + unsigned long *min, unsigned long *max) { if ((!min) || (!max)) diff --git a/utils/info.c b/utils/info.c index ce553ff..115a446 100644 --- a/utils/info.c +++ b/utils/info.c @@ -93,7 +93,7 @@ static void print_speed(unsigned long speed) tmp = speed % 10000; if (tmp >= 5000) speed += 10000; - printf ("%u.%02u GHz", ((unsigned int) speed/1000000), + printf ("%u.%02u GHz", ((unsigned int) speed/1000000), ((unsigned int) (speed%1000000)/10000)); } else if (speed > 100000) { tmp = speed % 1000; @@ -104,7 +104,7 @@ static void print_speed(unsigned long speed) tmp = speed % 100; if (tmp >= 50) speed += 100; - printf ("%u.%01u MHz", ((unsigned int) speed/1000), + printf ("%u.%01u MHz", ((unsigned int) speed/1000), ((unsigned int) (speed%1000)/100)); } else printf ("%lu kHz", speed); @@ -173,7 +173,7 @@ static void debug_output_one(unsigned int cpu) printf("\n"); cpufreq_put_available_frequencies(freqs); } - + governors = cpufreq_get_available_governors(cpu); if (governors) { printf(gettext (" available cpufreq governors: ")); @@ -194,7 +194,7 @@ static void debug_output_one(unsigned int cpu) printf(".\n "); printf(gettext ("The governor \"%s\" may" - " decide which speed to use\n within this range.\n"), + " decide which speed to use\n within this range.\n"), policy->governor); cpufreq_put_policy(policy); } @@ -441,10 +441,10 @@ int main(int argc, char **argv) { case 'f': case 'e': case 's': - if (output_param) { - output_param = -1; - cont = 0; - break; + if (output_param) { + output_param = -1; + cont = 0; + break; } output_param = ret; break; @@ -470,7 +470,7 @@ int main(int argc, char **argv) { break; } } while(cont); - + switch (output_param) { case 'o': if (cpu_defined) { diff --git a/utils/set.c b/utils/set.c index 4bea7a6..c89a9b3 100644 --- a/utils/set.c +++ b/utils/set.c @@ -83,7 +83,7 @@ static void print_unknown_arg(void) { static unsigned long string_to_frequency(const char* str) { char normalized[NORM_FREQ_LEN]; - struct freq_units const * unit; + struct freq_units const * unit; const char* scan; char* end; unsigned long freq; |