mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
Suppress kraxelisms
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
1387fe4a95
commit
73538c31a8
2 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue