mirror of
https://github.com/anrieff/libcpuid
synced 2025-07-02 14:04:15 +00:00
Fixed a small bug, which occurred when only --clock option was given to cpuid_tool.
git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@21 3b4be424-7ac5-41d7-8526-f4ddcb85d872
This commit is contained in:
parent
f043e7133a
commit
6a5dff539e
1 changed files with 2 additions and 1 deletions
|
@ -547,7 +547,8 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
/* OK, process all queries. */
|
/* OK, process all queries. */
|
||||||
if ((!need_report || !only_clock_queries) && num_requests > 0) {
|
if ((!need_report || !only_clock_queries) && num_requests > 0) {
|
||||||
if (cpu_identify(&raw, &data) < 0) {
|
/* Identify the CPU. Make it do cpuid_get_raw_data() itself */
|
||||||
|
if (check_need_raw_data() && cpu_identify(NULL, &data) < 0) {
|
||||||
if (!need_quiet)
|
if (!need_quiet)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Error identifying the CPU: %s\n",
|
"Error identifying the CPU: %s\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue