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

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



* 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;

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