]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Fix hypervisor detection.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Sep 2013 13:44:09 +0000 (15:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Sep 2013 13:44:09 +0000 (15:44 +0200)
Was searching the wrong array.

src/_fireinfo/fireinfo.c

index 77616a13c6c80b921d402dc67b7d85fef1934f1f..08d714bd2b72a2c3fd3f446bc5302fcdf5b3fec3 100644 (file)
@@ -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;
                        }