From c58555c70f5e5294f7b7841576163053979d1211 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 13 Mar 2003 22:32:40 +0000 Subject: [PATCH] * fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_proc.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2e696dc65..b66fa1423 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-03-13 Corinna Vinschen + + * fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case. + 2003-03-13 Corinna Vinschen * net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock. diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index d819a17cc..c5a5f803c 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -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);