diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-28 19:12:16 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-28 19:12:16 +0000 |
commit | 73538c31a8f2d5aba3d82d8e60dadcb40d59061b (patch) | |
tree | e7ddb1ec51185292d61d2ab2a18373add45a0803 /hw/qdev-properties.c | |
parent | 1387fe4a95cc9e7b7fd997b7c676161bfac05c41 (diff) | |
download | qemu-73538c31a8f2d5aba3d82d8e60dadcb40d59061b.zip |
Suppress kraxelisms
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/qdev-properties.c')
-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 c9703c261c..12ff46bf0b 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -273,7 +273,7 @@ static int print_pci_devfn(DeviceState *dev, Property *prop, char *dest, size_t { uint32_t *ptr = qdev_get_prop_ptr(dev, prop); - if (-1 == *ptr) { + if (*ptr == -1) { return snprintf(dest, len, "<unset>"); } else { return snprintf(dest, len, "%02x.%x", *ptr >> 3, *ptr & 7); |