From: John Wolfe Date: Tue, 27 Jul 2021 17:37:24 +0000 (-0700) Subject: Add tools version and build info into the toolsDeployPkg.log file. X-Git-Tag: stable-12.0.0~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8259e2e5238e7b90c7f1ddf396ec47fc9acabfe1;p=thirdparty%2Fopen-vm-tools.git Add tools version and build info into the toolsDeployPkg.log file. --- diff --git a/open-vm-tools/libDeployPkg/linuxDeployment.c b/open-vm-tools/libDeployPkg/linuxDeployment.c index d978c8ffb..2cf77e61c 100644 --- a/open-vm-tools/libDeployPkg/linuxDeployment.c +++ b/open-vm-tools/libDeployPkg/linuxDeployment.c @@ -1883,6 +1883,10 @@ DeployPkg_DeployPackageFromFileEx(const char* file) { DeployPkgStatus retStatus; +#if !defined(OPEN_VM_TOOLS) && !defined(USERWORLD) + sLog(log_info, "Imgcust component Version: %s (%s)", + SYSIMAGE_VERSION_EXT_STR, BUILD_NUMBER); +#endif sLog(log_info, "Initializing deployment module."); Init(); diff --git a/open-vm-tools/services/plugins/deployPkg/deployPkg.c b/open-vm-tools/services/plugins/deployPkg/deployPkg.c index 76e49fc22..ddc1728d8 100644 --- a/open-vm-tools/services/plugins/deployPkg/deployPkg.c +++ b/open-vm-tools/services/plugins/deployPkg/deployPkg.c @@ -38,6 +38,10 @@ #include "unicodeBase.h" #include "conf.h" +#include "vm_tools_version.h" +#include "buildNumber.h" +#include "vm_product.h" + #ifdef __cplusplus extern "C" { #endif @@ -123,6 +127,8 @@ DeployPkgDeployPkgInGuest(ToolsAppCtx *ctx, // IN: app context } DeployPkg_SetLogger(DeployPkgLog_Log); + DeployPkgLog_Log(log_info, "%s Version: %s (%s)", VMWARE_TOOLS_SHORT_NAME, + TOOLS_VERSION_EXT_CURRENT_STR, BUILD_NUMBER); DeployPkgLog_Log(log_debug, "Deploying %s", pkgFile); #ifdef _WIN32