]> git.ipfire.org Git - thirdparty/qemu.git/commit
machine: Eliminate unnecessary stringify() usage
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 7 Jan 2019 19:30:19 +0000 (17:30 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 10 Jan 2019 00:10:00 +0000 (22:10 -0200)
commite0985450e134db99e2ee167e9cd0087a51220d8f
treef529184bd63808f5824b2512ec05f312c503f280
parentb3bcb3cedf58cb3c64a20712861ed9382773fd6b
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>
hw/core/machine.c
hw/i386/pc.c
hw/i386/pc_piix.c
hw/ppc/spapr.c