From: John Wolfe Date: Mon, 20 Sep 2021 15:07:36 +0000 (-0700) Subject: Log the guest OS name and full name. X-Git-Tag: stable-12.0.0~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe8803ea205da66e8a5040f447835fd2292de89e;p=thirdparty%2Fopen-vm-tools.git Log the guest OS name and full name. 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. --- diff --git a/open-vm-tools/services/plugins/guestInfo/guestInfoServer.c b/open-vm-tools/services/plugins/guestInfo/guestInfoServer.c index 03ea91832..d483fd2bd 100644 --- a/open-vm-tools/services/plugins/guestInfo/guestInfoServer.c +++ b/open-vm-tools/services/plugins/guestInfo/guestInfoServer.c @@ -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);