From: Michael Tremer Date: Sun, 1 Sep 2013 13:44:09 +0000 (+0200) Subject: Fix hypervisor detection. X-Git-Tag: v2.1.8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acd2c4c1c3725028de1b9907832baed8e4798070;p=oddments%2Ffireinfo.git Fix hypervisor detection. Was searching the wrong array. --- diff --git a/src/_fireinfo/fireinfo.c b/src/_fireinfo/fireinfo.c index 77616a1..08d714b 100644 --- a/src/_fireinfo/fireinfo.c +++ b/src/_fireinfo/fireinfo.c @@ -158,7 +158,7 @@ int detect_hypervisor(int *hypervisor) { int id; for (id = HYPER_NONE + 1; id < HYPER_LAST; id++) { - if (strcmp(hypervisor_vendors[id], sig.text) == 0) { + if (strcmp(hypervisor_ids[id], sig.text) == 0) { *hypervisor = id; break; }