mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
avoid printf format-mismatch warnings
* qemud/qemud.c (qemudClientReadBuf, qemudClientWriteBuf): Use %lld and a (long long int) cast to print a ssize_t value.
This commit is contained in:
@@ -1467,7 +1467,8 @@ static ssize_t qemudClientReadBuf(struct qemud_client *client,
|
||||
ssize_t ret;
|
||||
|
||||
if (len < 0) {
|
||||
VIR_ERROR(_("unexpected negative length request %d"), len);
|
||||
VIR_ERROR(_("unexpected negative length request %lld"),
|
||||
(long long int) len);
|
||||
qemudDispatchClientFailure(client);
|
||||
return -1;
|
||||
}
|
||||
@@ -1692,7 +1693,8 @@ static ssize_t qemudClientWriteBuf(struct qemud_client *client,
|
||||
ssize_t ret;
|
||||
|
||||
if (len < 0) {
|
||||
VIR_ERROR(_("unexpected negative length request %d"), len);
|
||||
VIR_ERROR(_("unexpected negative length request %lld"),
|
||||
(long long int) len);
|
||||
qemudDispatchClientFailure(client);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user