]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Incorporate the RpcChannel failure count in the warning message
authorOliver Kurth <okurth@vmware.com>
Fri, 26 Oct 2018 17:44:55 +0000 (10:44 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 26 Oct 2018 17:44:55 +0000 (10:44 -0700)
The RpcChannel failure limit can be adjusted by the user.  Capturing
the failure count reached when a "permanent" channel failure is
being logged.

open-vm-tools/lib/rpcChannel/rpcChannel.c

index 6fc511c8a953139f813adefffce77f906952ef93..06d0cec8d1a258007b2098138298c172995c4731 100644 (file)
@@ -576,8 +576,8 @@ RpcChannelError(void *_chan,
        chan->rpcMaxFailures > 0 &&
        ++chan->rpcFailureCount >= chan->rpcMaxFailures) {
       /* Maximum number of channel errors has been reached. */
-      Warning(LGPFX "RpcChannel failure limit reached; calling the failure "
-            "callback function.\n");
+      Warning(LGPFX "RpcChannel failure count %d; calling the failure "
+                    "callback function.\n", chan->rpcFailureCount);
       chan->rpcFailureCb(chan->resetData);
    }