fhandler_proc.cc(format_proc_cpuinfo): use _small_sprintf %X for microcode

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
This commit is contained in:
Brian Inglis 2020-08-04 00:51:56 -06:00 committed by Corinna Vinschen
parent 4ecc804d54
commit cb7fba2f3e

View File

@ -833,7 +833,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
"model\t\t: %d\n" "model\t\t: %d\n"
"model name\t: %s\n" "model name\t: %s\n"
"stepping\t: %d\n" "stepping\t: %d\n"
"microcode\t: 0x%x\n" "microcode\t: 0x%X\n"
"cpu MHz\t\t: %d.000\n", "cpu MHz\t\t: %d.000\n",
family, family,
model, model,