mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
3c07587d49
commit
455b0fde8c
6 changed files with 21 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue