From: Oliver Kurth Date: Fri, 26 Oct 2018 17:44:55 +0000 (-0700) Subject: Incorporate the RpcChannel failure count in the warning message X-Git-Tag: stable-11.0.0~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7deb123700457d97316cf536ce8ee9c4150e70cb;p=thirdparty%2Fopen-vm-tools.git Incorporate the RpcChannel failure count in the warning message The RpcChannel failure limit can be adjusted by the user. Capturing the failure count reached when a "permanent" channel failure is being logged. --- diff --git a/open-vm-tools/lib/rpcChannel/rpcChannel.c b/open-vm-tools/lib/rpcChannel/rpcChannel.c index 6fc511c8a..06d0cec8d 100644 --- a/open-vm-tools/lib/rpcChannel/rpcChannel.c +++ b/open-vm-tools/lib/rpcChannel/rpcChannel.c @@ -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); }