* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
This commit is contained in:
parent
49a0d53c46
commit
c58555c70f
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user