machine: Eliminate unnecessary stringify() usage

stringify() is useful when we need to use macros in compat_props
(like when we set virtio-baloon-pci.class=PCI_CLASS_MEMORY_RAM at
pc_i440fx_1_0_machine_options()), but it is pointless when we are
already providing a number literal.

Replace stringify() with string literals when appropriate.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190107193020.21744-3-ehabkost@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Eduardo Habkost 2019-01-07 17:30:19 -02:00
parent b3bcb3cedf
commit e0985450e1
4 changed files with 67 additions and 67 deletions

View file

@ -135,11 +135,11 @@ GlobalProperty hw_compat_2_8[] = {
{
.driver = "fw_cfg_mem",
.property = "x-file-slots",
.value = stringify(0x10),
.value = "0x10",
},{
.driver = "fw_cfg_io",
.property = "x-file-slots",
.value = stringify(0x10),
.value = "0x10",
},{
.driver = "pflash_cfi01",
.property = "old-multiple-chip-handling",
@ -337,11 +337,11 @@ GlobalProperty hw_compat_2_1[] = {
},{
.driver = "usb-mouse",
.property = "usb_version",
.value = stringify(1),
.value = "1",
},{
.driver = "usb-kbd",
.property = "usb_version",
.value = stringify(1),
.value = "1",
},{
.driver = "virtio-pci",
.property = "virtio-pci-bus-master-bug-migration",