cpuid/x86: correct libfmt specifier syntax

This commit is contained in:
Danny Robson 2021-05-18 06:54:20 +10:00
parent e1f864cd88
commit f9c298fba5

View File

@ -161,10 +161,12 @@ cruft::cpu::operator<< (std::ostream &os, const x86 &val)
fmt::print (
os,
"{ name: { vendor: '{}', product: '{}' }"
", cores: { logical: {}, physical: {}, hyper_threading: {} }"
", simd: { sse: {}, sse2: {}, sse3: {}, ssse3: {}, sse41: {}, sse42: {}, avx: {} }"
" }",
FMT_STRING(
"{{ name: {{ vendor: '{}', product: '{}' }}"
", cores: {{ logical: {}, physical: {}, hyper_threading: {} }}"
", simd: {{ sse: {}, sse2: {}, sse3: {}, ssse3: {}, sse41: {}, sse42: {}, avx: {} }}"
" }}"
),
to_string (val.vendor_name),
to_string (val.product_name),
val.cores.logical,