lscpu: Show hypervisor_vendor_id if present

This commit is contained in:
Linus Groh 2022-04-03 17:16:09 +01:00 committed by Andreas Kling
parent 33004f9b9d
commit 4f35c206e4
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00

View file

@ -15,6 +15,8 @@ static void print_cpu_info(JsonObject const& value)
{
outln("CPU {}:", value.get("processor").as_u32());
outln("\tVendor ID: {}", value.get("vendor_id").as_string());
if (value.has("hypervisor_vendor_id"))
outln("\tHypervisor Vendor ID: {}", value.get("hypervisor_vendor_id").as_string());
outln("\tBrand: {}", value.get("brand").as_string());
outln("\tFamily: {}", value.get("family").as_u32());
outln("\tModel: {}", value.get("model").as_u32());