diff options
author | Dave Jones <davej@redhat.com> | 2011-02-22 19:30:27 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-02-22 19:30:27 -0500 |
commit | 7b6cf5374cbbe6e0aadffd9cf0c924c58565435e (patch) | |
tree | 87f0078c501b439af6b5e7583c791c074c115a20 | |
parent | 560d98b10bf8155a3724ef2c0745b613cd26ce5e (diff) |
use more elaborate variable name
-rw-r--r-- | commandline.c | 6 | ||||
-rw-r--r-- | features.c | 4 | ||||
-rw-r--r-- | x86info.c | 2 | ||||
-rw-r--r-- | x86info.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/commandline.c b/commandline.c index 33542d0..96e86bd 100644 --- a/commandline.c +++ b/commandline.c @@ -25,7 +25,7 @@ unsigned int show_pm = 0; unsigned int show_cpuid = 0; unsigned int show_urls = 0; unsigned int show_mptable = 0; -unsigned int show_flags = 0; +unsigned int show_feature_flags = 0; unsigned int show_MHz = 0; unsigned int show_addr_sizes = 0; unsigned int all_cpus = 0; @@ -86,7 +86,7 @@ void parse_command_line(int argc, char **argv) show_bugs = 1; show_cacheinfo = 1; show_connector = 1; - show_flags = 1; + show_feature_flags = 1; show_MHz = 1; show_pm = 1; show_cpuid = 1; @@ -125,7 +125,7 @@ void parse_command_line(int argc, char **argv) debug = 1; if ((!strcmp(arg, "-f") || !strcmp(arg, "--flags"))) - show_flags = 1; + show_feature_flags = 1; if ((!strcmp(arg, "-m") || !strcmp(arg, "--msr"))) { need_root = 1; @@ -150,7 +150,7 @@ void show_extra_intel_flags(struct cpudata *cpu) } } -static void show_feature_flags(struct cpudata *cpu) +static void decode_feature_flags(struct cpudata *cpu) { unsigned int eax, ebx, ecx, edx; @@ -474,7 +474,7 @@ static void test_longnop(void) void display_features(struct cpudata *cpu) { - show_feature_flags(cpu); + decode_feature_flags(cpu); test_longnop(); printf("\n"); } @@ -59,7 +59,7 @@ static void display_detailed_info(struct cpudata *cpu) } } - if (show_flags) + if (show_feature_flags) display_features(cpu); if (show_connector) @@ -203,7 +203,7 @@ extern unsigned int show_pm; extern unsigned int show_cpuid; extern unsigned int show_urls; extern unsigned int show_mptable; -extern unsigned int show_flags; +extern unsigned int show_feature_flags; extern unsigned int show_MHz; extern unsigned int show_addr_sizes; extern unsigned int all_cpus; |