summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-02-22 19:30:27 -0500
committerDave Jones <davej@redhat.com>2011-02-22 19:30:27 -0500
commit7b6cf5374cbbe6e0aadffd9cf0c924c58565435e (patch)
tree87f0078c501b439af6b5e7583c791c074c115a20
parent560d98b10bf8155a3724ef2c0745b613cd26ce5e (diff)
use more elaborate variable name
-rw-r--r--commandline.c6
-rw-r--r--features.c4
-rw-r--r--x86info.c2
-rw-r--r--x86info.h2
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;
diff --git a/features.c b/features.c
index 6b7e8bf..cfee24c 100644
--- a/features.c
+++ b/features.c
@@ -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");
}
diff --git a/x86info.c b/x86info.c
index f87f824..0b08a2b 100644
--- a/x86info.c
+++ b/x86info.c
@@ -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)
diff --git a/x86info.h b/x86info.h
index dcc74f5..06b74c5 100644
--- a/x86info.h
+++ b/x86info.h
@@ -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;