]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
qerror: Clean up QERR_ macros to expand into a single string
authorMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2015 10:54:50 +0000 (11:54 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 22 Jun 2015 16:20:40 +0000 (18:20 +0200)
commitc6bd8c706a799eb0fece99f468aaa22b818036f3
treef6f5c9119c642fee35cdd98957c3bfd30527a76d
parent75158ebbe259f0bd8bf435e8f4827a43ec89c877
qerror: Clean up QERR_ macros to expand into a single string

These macros expand into error class enumeration constant, comma,
string.  Unclean.  Has been that way since commit 13f59ae.

The error class is always ERROR_CLASS_GENERIC_ERROR since the previous
commit.

Clean up as follows:

* Prepend every use of a QERR_ macro by ERROR_CLASS_GENERIC_ERROR, and
  delete it from the QERR_ macro.  No change after preprocessing.

* Rewrite error_set(ERROR_CLASS_GENERIC_ERROR, ...) into
  error_setg(...).  Again, no change after preprocessing.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
54 files changed:
backends/rng-egd.c
backends/rng-random.c
backends/rng.c
backends/tpm.c
balloon.c
block.c
block/backup.c
block/commit.c
block/mirror.c
block/qcow.c
block/qcow2.c
block/qed.c
block/quorum.c
block/snapshot.c
block/stream.c
block/vmdk.c
blockdev-nbd.c
blockdev.c
blockjob.c
cpus.c
dump.c
hmp.c
hw/core/nmi.c
hw/core/qdev-properties-system.c
hw/core/qdev-properties.c
hw/core/qdev.c
hw/intc/openpic.c
hw/net/rocker/qmp-norocker.c
hw/pci/pci-stub.c
hw/ppc/spapr_pci.c
hw/s390x/s390-virtio.c
hw/usb/redirect.c
include/qapi/qmp/qerror.h
migration/migration.c
migration/savevm.c
monitor.c
net/net.c
qapi/opts-visitor.c
qapi/qapi-visit-core.c
qapi/qmp-dispatch.c
qapi/qmp-input-visitor.c
qapi/string-input-visitor.c
qdev-monitor.c
qemu-img.c
qga/commands-posix.c
qga/commands-win32.c
qga/main.c
qmp.c
qom/object.c
stubs/arch-query-cpu-def.c
target-i386/cpu.c
tpm.c
ui/vnc.c
util/qemu-option.c