[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] rpc: fix a typo in debugging log in virNetServerProgramSendStreamData



On 08/27/2011 11:46 PM, Guannan Ren wrote:
> The bufferOffset has been initialized to zero in virNetMessageEncodePayloadRaw(),
> so, we use bufferLength to represent the length of message which is going to be
> sent to client side.
> ---
>  src/rpc/virnetserverprogram.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/rpc/virnetserverprogram.c b/src/rpc/virnetserverprogram.c
> index ac3f0fd..2e9e3f7 100644
> --- a/src/rpc/virnetserverprogram.c
> +++ b/src/rpc/virnetserverprogram.c
> @@ -468,7 +468,7 @@ int virNetServerProgramSendStreamData(virNetServerProgramPtr prog,
>          if (virNetMessageEncodePayloadEmpty(msg) < 0)
>              return -1;
>      }
> -    VIR_DEBUG("Total %zu", msg->bufferOffset);
> +    VIR_DEBUG("Total %zu", msg->bufferLength);

ACK and pushed.

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]