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@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list