aboutsummaryrefslogtreecommitdiff
path: root/util/qemu-option.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-02-27 13:55:43 +0100
committerKevin Wolf <kwolf@redhat.com>2017-02-28 20:40:31 +0100
commit9e19ad4e49c8dc7f776bf770f52ad6ea1ec28edc (patch)
tree08b9485e573079e2f9f49cff7e89b108aa920c67 /util/qemu-option.c
parent2d9187bc65727d9dd63e2c410b5500add3db0b0d (diff)
downloadqemu-9e19ad4e49c8dc7f776bf770f52ad6ea1ec28edc.zip
qemu-9e19ad4e49c8dc7f776bf770f52ad6ea1ec28edc.tar.gz
qemu-9e19ad4e49c8dc7f776bf770f52ad6ea1ec28edc.tar.bz2
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>
Diffstat (limited to 'util/qemu-option.c')
-rw-r--r--util/qemu-option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/qemu-option.c b/util/qemu-option.c
index 419f252..5ce1b5c 100644
--- a/util/qemu-option.c
+++ b/util/qemu-option.c
@@ -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;
}