cpuid.c32: output the correct register names
authorH. Peter Anvin <hpa@zytor.com>
Wed, 31 Mar 2010 15:56:12 +0000 (08:56 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 31 Mar 2010 15:56:12 +0000 (08:56 -0700)
Output the correct register names in cpuid.c32; fix copy-and-paste
error.

Reported-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/cpuid.c

index 4758fba..62a756e 100644 (file)
@@ -52,9 +52,9 @@ int main(int argc, char *argv[])
     cpuid_count(leaf, counter, &eax, &ebx, &ecx, &edx);
 
     dump_reg("eax", eax);
-    dump_reg("eax", ebx);
-    dump_reg("eax", ecx);
-    dump_reg("eax", edx);
+    dump_reg("ebx", ebx);
+    dump_reg("ecx", ecx);
+    dump_reg("edx", edx);
 
     return 0;
 }