diff options
author | David 'Digit' Turner <digit@google.com> | 2011-01-10 23:11:40 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-20 18:51:59 +0100 |
commit | 5a5e3d55ffbcb81f97b4a6353f1649b1b9772938 (patch) | |
tree | 257b349599ff1a5af3449ecf26251a8a6f6615ef | |
parent | 7464f0587b2938a3e10e9f995f384df8a5f298ac (diff) |
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>
-rw-r--r-- | 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 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"); } |