* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.

This commit is contained in:
Corinna Vinschen 2003-03-13 22:32:40 +00:00
parent 49a0d53c46
commit c58555c70f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-03-13 Corinna Vinschen <corinna@vinschen.de>
* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
2003-03-13 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.

View File

@ -663,7 +663,7 @@ format_proc_cpuinfo (char *destbuf, size_t maxsize)
{
bufptr += __small_sprintf (bufptr, "processor : %d\n", cpu_number);
unsigned maxf, vendor_id[4], unused;
cpuid (&maxf, &vendor_id[0], &vendor_id[1], &vendor_id[2], 0);
cpuid (&maxf, &vendor_id[0], &vendor_id[2], &vendor_id[1], 0);
maxf &= 0xffff;
vendor_id[3] = 0;
bufptr += __small_sprintf (bufptr, "vendor id : %s\n", (char *)vendor_id);