]> sourceware.org Git - newlib-cygwin.git/commitdiff
fhandler_proc.cc(format_proc_cpuinfo): use _small_sprintf %X for microcode
authorBrian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Tue, 4 Aug 2020 06:51:56 +0000 (00:51 -0600)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 4 Aug 2020 08:10:40 +0000 (10:10 +0200)
microcode is unsigned long long, printed by _small_sprintf using %x;
Cygwin32 used last 4 bytes of microcode for next field MHz, printing 0;
use correct _small_sprintf format %X to print microcode, producing
correct MHz value under Cygwin32

winsup/cygwin/fhandler_proc.cc

index 72ffa89cdc79b38fa1e8948e944bc40154f51605..9a20c23d4b65b3d370ea609b229c3448be3cb6ae 100644 (file)
@@ -833,7 +833,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
                                         "model\t\t: %d\n"
                                         "model name\t: %s\n"
                                         "stepping\t: %d\n"
-                                        "microcode\t: 0x%x\n"
+                                        "microcode\t: 0x%X\n"
                                         "cpu MHz\t\t: %d.000\n",
                                 family,
                                 model,
This page took 0.034547 seconds and 5 git commands to generate.