summary refs log tree commit diff stats
path: root/hw/i386/pc.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2015-11-10 23:51:20 -0700
committerMarkus Armbruster <armbru@redhat.com>2015-11-11 18:56:26 +0100
commit455b0fde8c38a0794743e2e7c1a40018b7bee9f6 (patch)
tree036a4a332b5b713734b536a63987e0cb96118a6b /hw/i386/pc.c
parent3c07587d49458341510360557c849e93e9afaf59 (diff)
downloadfocaccia-qemu-455b0fde8c38a0794743e2e7c1a40018b7bee9f6.tar.gz
focaccia-qemu-455b0fde8c38a0794743e2e7c1a40018b7bee9f6.zip
error: More error_setg() usage
A few uses of error_set(ERROR_CLASS_GENERIC_ERROR) were missed in
c6bd8c706, or have snuck in since.  Nuke them.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1447224690-9743-19-git-send-email-eblake@redhat.com>
Acked-by: Andreas Färber <afaerber@suse.de>
[Indentation tidied up, commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/i386/pc.c')
-rw-r--r--hw/i386/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 0cb8afd2c2..5e20e07b6f 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1795,9 +1795,9 @@ static void pc_machine_set_max_ram_below_4g(Object *obj, Visitor *v,
         return;
     }
     if (value > (1ULL << 32)) {
-        error_set(&error, ERROR_CLASS_GENERIC_ERROR,
-                  "Machine option 'max-ram-below-4g=%"PRIu64
-                  "' expects size less than or equal to 4G", value);
+        error_setg(&error,
+                   "Machine option 'max-ram-below-4g=%"PRIu64
+                   "' expects size less than or equal to 4G", value);
         error_propagate(errp, error);
         return;
     }