]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Log the guest OS name and full name.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 20 Sep 2021 15:07:36 +0000 (08:07 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 20 Sep 2021 15:07:36 +0000 (08:07 -0700)
Added a log message for the guest OS name and full name that is sent as
guestInfo.  Messages are logged only when the guestInfo is successfully
updated to the VMX log.

open-vm-tools/services/plugins/guestInfo/guestInfoServer.c

index 03ea91832338ad70dfa692a4a11d233ecf895fbc..d483fd2bd5cd8f58e3eb8d2fc7aa7f6f3e43ae5d 100644 (file)
@@ -1606,6 +1606,12 @@ GuestInfoUpdateVMX(ToolsAppCtx *ctx,        // IN: Application context
          return FALSE;
       }
 
+      if (infoType == INFO_OS_NAME) {
+         g_message("Updated Guest OS name to %s\n", (char *) info);
+      } else if (infoType == INFO_OS_NAME_FULL) {
+         g_message("Updated Guest OS full name to %s\n", (char *) info);
+      }
+
       /* Update the value in the cache as well. */
       free(gInfoCache.value[infoType]);
       gInfoCache.value[infoType] = Util_SafeStrdup((char *) info);