commit | b0006589725ddc11265f1f076d9f57a320672604 | [log] [tgz] |
---|---|---|
author | bohu <bohu@google.com> | Wed Dec 28 15:53:22 2016 -0800 |
committer | bohu <bohu@google.com> | Tue Jan 03 08:54:27 2017 -0800 |
tree | 7c59830b7a07936a5928ebad71b03433a39bcc9a | |
parent | 83e56f2c68222939572244acaae53d269e3559c4 [diff] |
Qemu2: OSX: fix bogus cores number when hw.cpu.ncore is missing from config.ini The StringFormat is used to convert interger to "cores=<number>", however, when calling this method, we pass the "%ld" instead of "%d" for the case of hw_cpu_ncore (of type int), as a result, we get -smp cores=8796093022210 (0x80000000002), for hw_cpu_ncore=2. BUG: 33948771 Change-Id: I32d5ea3c871b8abac83b9c68c3f38572dd8ea4b3