]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: use more appropriate error
authorEric Blake <eblake@redhat.com>
Tue, 15 Mar 2011 14:49:04 +0000 (08:49 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 15 Mar 2011 14:49:04 +0000 (08:49 -0600)
Fixes bug in commit acacced

* src/qemu/qemu_command.c (qemuBuildCommandLine):
s/INVALID_ARG/CONFIG_UNSUPPORTED/.
Reported by Daniel P. Berrange.

src/qemu/qemu_command.c

index c63de0914bbc8b14865c6f08b24dea1fc27f3626..c9b985007777bdfb6617ff16d78dbd34a8699f38 100644 (file)
@@ -1935,7 +1935,7 @@ qemuBuildVideoDevStr(virDomainVideoDefPtr video,
 
     if (video->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
         if (video->vram > (UINT_MAX / 1024)) {
-            qemuReportError(VIR_ERR_INVALID_ARG,
+            qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                             _("value for 'vram' must be less than '%u'"),
                             UINT_MAX / 1024);
             goto error;
@@ -4050,7 +4050,7 @@ qemuBuildCommandLine(virConnectPtr conn,
                     if (def->videos[0]->vram &&
                         qemuCapsGet(qemuCaps, QEMU_CAPS_DEVICE)) {
                         if (def->videos[0]->vram > (UINT_MAX / 1024)) {
-                            qemuReportError(VIR_ERR_INVALID_ARG,
+                            qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                                             _("value for 'vram' must be less than '%u'"),
                                             UINT_MAX / 1024);
                             goto error;