1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +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:
Veselin Georgiev 2008-11-19 17:29:10 +00:00
parent f043e7133a
commit 6a5dff539e

View file

@ -547,7 +547,8 @@ int main(int argc, char** argv)
}
/* OK, process all queries. */
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)
fprintf(stderr,
"Error identifying the CPU: %s\n",