mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
rpc: fix a typo in debugging log in virNetServerProgramSendStreamData
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.
This commit is contained in:
parent
a71f8fc70f
commit
bae460fc56
@ -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);
|
||||
|
||||
return virNetServerClientSendMessage(client, msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user