]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Log full version of Tools in vmware.log.
authorOliver Kurth <okurth@vmware.com>
Tue, 5 Jun 2018 22:47:38 +0000 (15:47 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 5 Jun 2018 22:47:38 +0000 (15:47 -0700)
Currently, only the Tools build number is logged in vmware.log.
It will be very handy to have the full version logged in
there and avoid the need to manually lookup the build.

open-vm-tools/services/vmtoolsd/toolsRpc.c

index a10ef3d831714831bec8b2d97875894b322893a4..aaf6c1d6dbf8e5a8f2183753ad1759020a7b3481 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2008-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2018 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -36,7 +36,7 @@
 #include "str.h"
 #include "strutil.h"
 #include "toolsCoreInt.h"
-#include "vm_tools_version.h"
+#include "vmtoolsd_version.h"
 #include "vmware/tools/utils.h"
 #include "vmware/tools/log.h"
 #include "vm_version.h"
@@ -81,10 +81,11 @@ ToolsCoreCheckReset(RpcChannel *chan,
 
       if (!version_sent) {
          /*
-          * Log the Tools build number to the VMX log file. We don't really care
+          * Log the Tools version to the VMX log file. We don't really care
           * if sending the message fails.
           */
-         msg = g_strdup_printf("log %s: Version: %s", app, BUILD_NUMBER);
+         msg = g_strdup_printf("log %s: Version: %s (%s)",
+                               app, VMTOOLSD_VERSION_STRING, BUILD_NUMBER);
          RpcChannel_Send(state->ctx.rpc, msg, strlen(msg) + 1, NULL, NULL);
          g_free(msg);
          /* send message only once to prevent log spewing: */