qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PULL for-2.1] virtio-rng: Fix abort on invalid input


From: Peter Maydell
Subject: Re: [Qemu-devel] [PULL for-2.1] virtio-rng: Fix abort on invalid input
Date: Thu, 17 Jul 2014 13:49:19 +0100

On 16 July 2014 10:13, Amit Shah <address@hidden> wrote:
> Hi,
>
> This patch returns an error instead of aborting, which is desirable
> not just for cmdline invocation, but prevents an abort in case of
> device hotplug.
>
> Patch is small, and reviewed on-list.
>
> Please pull,
>
> The following changes since commit 5a7348045091a2bc15d85bb177e5956aa6114e5a:
>
>   Update version for v2.1.0-rc2 release (2014-07-15 18:55:37 +0100)
>
> are available in the git repository at:
>
>   git://git.kernel.org/pub/scm/virt/qemu/amit/virtio-rng.git for-2.1
>
> for you to fetch changes up to 9ef6be93250e46d35062c84d5c75c7cb515dc27c:
>
>   virtio-rng: Add human-readable error message for negative max-bytes 
> parameter (2014-07-16 14:25:29 +0530)

Hi. I'm afraid this doesn't build on 32-bit hosts:

CC hw/virtio/virtio-rng.o
/root/qemu/hw/virtio/virtio-rng.c: In function 'virtio_rng_device_realize':
/root/qemu/hw/virtio/virtio-rng.c:186:19: error: format '%lld' expects
argument of type 'long long int', but argument 7 has type 'long int'
[-Werror=format]
cc1: all warnings being treated as errors

I think you want "(int64_t)0" rather than "0L".

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]