summaryrefslogtreecommitdiff
path: root/hw/qdev-properties.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2011-01-10 23:11:40 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-02-20 18:51:59 +0100
commit5a5e3d55ffbcb81f97b4a6353f1649b1b9772938 (patch)
tree257b349599ff1a5af3449ecf26251a8a6f6615ef /hw/qdev-properties.c
parent7464f0587b2938a3e10e9f995f384df8a5f298ac (diff)
downloadqemu-5a5e3d55ffbcb81f97b4a6353f1649b1b9772938.tar.gz
qemu-5a5e3d55ffbcb81f97b4a6353f1649b1b9772938.tar.bz2
qemu-5a5e3d55ffbcb81f97b4a6353f1649b1b9772938.zip
qdev: Fix printout of bit device properties with bit index >= 8
Signed-off-by: David 'Digit' Turner <digit@google.com> Acked-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r--hw/qdev-properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index a493087a52..a45b61e7ed 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -51,7 +51,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");
}