]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add enhanced log messages and a few new log messages.
authorOliver Kurth <okurth@vmware.com>
Thu, 19 Jan 2017 01:28:16 +0000 (17:28 -0800)
committerOliver Kurth <okurth@vmware.com>
Fri, 20 Jan 2017 03:09:02 +0000 (19:09 -0800)
open-vm-tools/lib/syncDriver/syncDriverLinux.c
open-vm-tools/services/plugins/vix/foundryToolsDaemon.c
open-vm-tools/services/plugins/vmbackup/stateMachine.c

index 4cd8f20a2f753b9baebab1ab495583b19f3dec86..f1fff29bc5f42e5dbd431ef4bde68f8496682374 100644 (file)
@@ -73,7 +73,9 @@ LinuxFiThaw(const SyncDriverHandle handle)
     * Thaw in the reverse order of freeze
     */
    for (i = sync->fdCnt; i > 0; i--) {
+      Debug(LGPFX "Thawing fd=%d.\n", sync->fds[i-1]);
       if (ioctl(sync->fds[i-1], FITHAW) == -1) {
+         Debug(LGPFX "Thaw failed for fd=%d.\n", sync->fds[i-1]);
          err = SD_ERROR;
       }
    }
@@ -104,6 +106,7 @@ LinuxFiClose(SyncDriverHandle handle)
     * Close in the reverse order of open
     */
    for (i = sync->fdCnt; i > 0; i--) {
+      Debug(LGPFX "Closing fd=%d.\n", sync->fds[i-1]);
       close(sync->fds[i-1]);
    }
    free(sync->fds);
@@ -198,7 +201,7 @@ LinuxDriver_Freeze(const GSList *paths,
          }
       }
 
-      Debug(LGPFX "freezing path '%s'.\n", path);
+      Debug(LGPFX "freezing path '%s' (fd=%d).\n", path, fd);
       if (ioctl(fd, FIFREEZE) == -1) {
          int ioctlerr = errno;
          /*
@@ -221,7 +224,7 @@ LinuxDriver_Freeze(const GSList *paths,
             break;
          }
       } else {
-         Debug(LGPFX "successfully froze '%s'.\n", path);
+         Debug(LGPFX "successfully froze '%s' (fd=%d).\n", path, fd);
          if (!DynBuf_Append(&fds, &fd, sizeof fd)) {
             if (ioctl(fd, FITHAW) == -1) {
                Warning(LGPFX "failed to thaw '%s': %d (%s)\n",
index 66c240c9743fb8fa008b3de008ce362ad3af458c..61079dbf2d32bbc70687a55818a6aa1691c482ce 100644 (file)
@@ -1256,9 +1256,11 @@ ToolsDaemonTcloReceiveVixCommand(RpcInData *data) // IN
     */
    additionalError = VixTools_GetAdditionalError(requestMsg->opCode, err);
    if (additionalError) {
-      g_message("%s: additionalError = %u\n", __FUNCTION__, additionalError);
+      g_message("%s: command %u, additionalError = %u\n",
+                __FUNCTION__, requestMsg->opCode, additionalError);
    } else {
-      g_debug("%s: additionalError = %u\n", __FUNCTION__, additionalError);
+      g_debug("%s: command %u, additionalError = %u\n",
+              __FUNCTION__, requestMsg->opCode, additionalError);
    }
 
 abort:
index c89d6ac022f7cd996812a089f1fe487e095ca4be..2a7b16df7de56e2be0343ae6b9109f472ece4b47 100644 (file)
@@ -267,7 +267,8 @@ VmBackup_SendEvent(const char *event,
 #endif
 
    if (!success) {
-      g_warning("Failed to send vmbackup event: %s.\n", result);
+      g_warning("Failed to send vmbackup event: %s, result: %s.\n",
+                msg, result);
    }
    vm_free(result);
    g_free(msg);