From: Eric Blake Date: Tue, 15 Mar 2011 14:49:04 +0000 (-0600) Subject: qemu: use more appropriate error X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=30a50fc3b03cafc063df6ee0adb07487db12ba0b;p=libvirt.git qemu: use more appropriate error Fixes bug in commit acacced * src/qemu/qemu_command.c (qemuBuildCommandLine): s/INVALID_ARG/CONFIG_UNSUPPORTED/. Reported by Daniel P. Berrange. --- diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index c63de0914b..c9b9850077 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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;