mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
489fde7680
commit
555de859cc
|
@ -1,3 +1,9 @@
|
|||
Wed Jan 28 12:08:26 +0100 2009 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
avoid printf format-mismatch warnings
|
||||
* qemud/qemud.c (qemudClientReadBuf, qemudClientWriteBuf):
|
||||
Use %lld and a (long long int) cast to print a ssize_t value.
|
||||
|
||||
Tue Jan 27 18:17:07 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
Support Copy-on-Write storage volumes
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue