[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qdev: Fix printout of bit device properties wit
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] qdev: Fix printout of bit device properties with bit index >= 8 |
Date: |
Sun, 20 Feb 2011 18:54:16 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Jan 10, 2011 at 11:11:40PM +0100, address@hidden wrote:
> From: David 'Digit' Turner <address@hidden>
>
> Signed-off-by: David 'Digit' Turner <address@hidden>
> ---
> hw/qdev-properties.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
> index 9219cd7..d5d9591 100644
> --- a/hw/qdev-properties.c
> +++ b/hw/qdev-properties.c
> @@ -50,7 +50,7 @@ static int parse_bit(DeviceState *dev, Property *prop,
> const char *str)
>
> static int print_bit(DeviceState *dev, Property *prop, char *dest, size_t
> len)
> {
> - uint8_t *p = qdev_get_prop_ptr(dev, prop);
> + uint32_t *p = qdev_get_prop_ptr(dev, prop);
> return snprintf(dest, len, (*p & qdev_get_prop_mask(prop)) ? "on" :
> "off");
> }
>
Thanks, applied.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH] qdev: Fix printout of bit device properties with bit index >= 8,
Aurelien Jarno <=