mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
option: Tweak invalid size error message and unbreak iotest 049
Commit 75cdcd1
neglected to update tests/qemu-iotests/049.out, and
made the error message for negative size worse. Fix that.
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
2d9187bc65
commit
9e19ad4e49
2 changed files with 10 additions and 6 deletions
|
@ -179,7 +179,7 @@ void parse_option_size(const char *name, const char *value,
|
|||
|
||||
err = qemu_strtosz(value, NULL, &size);
|
||||
if (err == -ERANGE) {
|
||||
error_setg(errp, "Value '%s' is too large for parameter '%s'",
|
||||
error_setg(errp, "Value '%s' is out of range for parameter '%s'",
|
||||
value, name);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue