Re: [libvirt] [PATCH] Fix up some warnings from stream DEBUG statements.

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

 



On Wed, Sep 30, 2009 at 01:27:16PM +0200, Chris Lalancette wrote:
> Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
> ---
>  src/remote/remote_driver.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
> index d8b9cf8..135b0d6 100644
> --- a/src/remote/remote_driver.c
> +++ b/src/remote/remote_driver.c
> @@ -6728,7 +6728,7 @@ remoteStreamPacket(virStreamPtr st,
>                     const char *data,
>                     size_t nbytes)
>  {
> -    DEBUG("st=%p status=%d data=%p nbytes=%d", st, status, data, nbytes);
> +    DEBUG("st=%p status=%d data=%p nbytes=%zu", st, status, data, nbytes);
>      struct private_data *priv = st->conn->privateData;
>      struct private_stream_data *privst = st->privateData;
>      XDR xdr;
> @@ -6788,7 +6788,7 @@ remoteStreamPacket(virStreamPtr st,
>      if (status == REMOTE_CONTINUE) {
>          if (((4 + REMOTE_MESSAGE_MAX) - thiscall->bufferLength) < nbytes) {
>              errorf(st->conn,
> -                   VIR_ERR_RPC, _("data size %d too large for payload %d"),
> +                   VIR_ERR_RPC, _("data size %zu too large for payload %d"),
>                     nbytes, ((4 + REMOTE_MESSAGE_MAX) - thiscall->bufferLength));
>              goto error;
>          }
> @@ -6874,7 +6874,7 @@ remoteStreamSend(virStreamPtr st,
>                   const char *data,
>                   size_t nbytes)
>  {
> -    DEBUG("st=%p data=%p nbytes=%d", st, data, nbytes);
> +    DEBUG("st=%p data=%p nbytes=%zu", st, data, nbytes);
>      struct private_data *priv = st->conn->privateData;
>      int rv = -1;
>  
> @@ -6903,7 +6903,7 @@ remoteStreamRecv(virStreamPtr st,
>                   char *data,
>                   size_t nbytes)
>  {
> -    DEBUG("st=%p data=%p nbytes=%d", st, data, nbytes);
> +    DEBUG("st=%p data=%p nbytes=%zu", st, data, nbytes);
>      struct private_data *priv = st->conn->privateData;
>      struct private_stream_data *privst = st->privateData;
>      int rv = -1;
> -- 

ACK

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]