]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Tweak a few "Parameter 'NAME' expects THING" error message
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Nov 2020 08:26:26 +0000 (09:26 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 10 Dec 2020 16:16:44 +0000 (17:16 +0100)
Change to "expects a THING" where that's an obvious improvement

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201113082626.2725812-11-armbru@redhat.com>

block/quorum.c
blockdev.c
chardev/char.c
hw/core/qdev-properties-system.c
softmmu/qdev-monitor.c

index b10fc2089e5e9e2d9dabd379e398d1b8aa9862fb..4b08a199b778907fd662d2d96e37fb4b6c0a461d 100644 (file)
@@ -856,7 +856,7 @@ static int quorum_valid_threshold(int threshold, int num_children, Error **errp)
 
     if (threshold < 1) {
         error_setg(errp, QERR_INVALID_PARAMETER_VALUE,
-                   "vote-threshold", "value >= 1");
+                   "vote-threshold", "value >= 1");
         return -ERANGE;
     }
 
index d05a8740f450acd2a1ed82e0ff38c9594a62dddd..6c7be7c5223a6921ad2be8f2466b5fd9975db081 100644 (file)
@@ -2991,7 +2991,7 @@ static void blockdev_mirror_common(const char *job_id, BlockDriverState *bs,
     }
     if (granularity & (granularity - 1)) {
         error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "granularity",
-                   "power of 2");
+                   "power of 2");
         return;
     }
 
index aa4282164acabbba58a6eea76b8cabf346b79ad5..a9b8c5a9aac6b4e5d013d87e6348cad4a8b059a7 100644 (file)
@@ -521,7 +521,7 @@ static const ChardevClass *char_get_class(const char *driver, Error **errp)
 
     if (object_class_is_abstract(oc)) {
         error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "driver",
-                   "abstract device type");
+                   "an abstract device type");
         return NULL;
     }
 
index 9d80a07d26f82edc11cb7cb6782f1943b141e024..8912fb4e9c39698278cb539819f9e5667d652511 100644 (file)
@@ -776,7 +776,7 @@ static void set_pci_devfn(Object *obj, Visitor *v, const char *name,
         }
         if (value < -1 || value > 255) {
             error_setg(errp, QERR_INVALID_PARAMETER_VALUE,
-                       name ? name : "null", "pci_devfn");
+                       name ? name : "null", "a value between -1 and 255");
             return;
         }
         *ptr = value;
index 301089eaea59d99cd34fd1a06f1bbf05f7d8a220..31e5b589b7a1c547d71936735ce52fcf9bbb6580 100644 (file)
@@ -237,7 +237,7 @@ static DeviceClass *qdev_get_device_class(const char **driver, Error **errp)
 
     if (object_class_is_abstract(oc)) {
         error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "driver",
-                   "non-abstract device type");
+                   "non-abstract device type");
         return NULL;
     }
 
@@ -245,7 +245,7 @@ static DeviceClass *qdev_get_device_class(const char **driver, Error **errp)
     if (!dc->user_creatable ||
         (qdev_hotplug && !dc->hotpluggable)) {
         error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "driver",
-                   "pluggable device type");
+                   "pluggable device type");
         return NULL;
     }