mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
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.
This commit is contained in:
parent
fc4c8199de
commit
30a50fc3b0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user