]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add tools version and build info into the toolsDeployPkg.log file.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 27 Jul 2021 17:37:24 +0000 (10:37 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 27 Jul 2021 17:37:24 +0000 (10:37 -0700)
open-vm-tools/libDeployPkg/linuxDeployment.c
open-vm-tools/services/plugins/deployPkg/deployPkg.c

index d978c8ffbeb3f6ee6e146607f1b375b8d06bd344..2cf77e61c21613c05db3b0189f86222a49f1255e 100644 (file)
@@ -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();
 
index 76e49fc22b498421fee86a4fa67846b8aa418144..ddc1728d82ba3af9c6486daa5b508b2aa86bd21a 100644 (file)
 #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