[libvirt] ESX [05/12]: Also strip (C) and (TM) from the CPU model string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* src/esx/esx_driver.c: also strip (C) and (TM) from the CPU model string
diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
index 3f3ee30..96d5976 100644
--- a/src/esx/esx_driver.c
+++ b/src/esx/esx_driver.c
@@ -746,9 +746,12 @@ esxNodeGetInfo(virConnectPtr conn, virNodeInfoPtr nodeinfo)
                 if (STRPREFIX (ptr, "  ")) {
                     memmove(ptr, ptr + 1, strlen (ptr + 1) + 1);
                     continue;
-                } else if (STRPREFIX (ptr, "(R)")) {
+                } else if (STRPREFIX(ptr, "(R)") || STRPREFIX(ptr, "(C)")) {
                     memmove(ptr, ptr + 3, strlen (ptr + 3) + 1);
                     continue;
+                } else if (STRPREFIX(ptr, "(TM)")) {
+                    memmove(ptr, ptr + 4, strlen(ptr + 4) + 1);
+                    continue;
                 }
 
                 ++ptr;
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]