vl.c: Use "%s support is disabled" error messages consistently

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1446217682-24421-12-git-send-email-ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Eduardo Habkost 2015-10-30 13:08:02 -02:00 committed by Markus Armbruster
parent 515cb8ef27
commit 5dfdae8143
1 changed files with 5 additions and 6 deletions

11
vl.c
View File

@ -1019,8 +1019,7 @@ static int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp)
return -1; return -1;
} }
#else #else
error_report("sandboxing request but seccomp is not compiled " error_report("seccomp support is disabled");
"into this build");
return -1; return -1;
#endif #endif
} }
@ -3441,7 +3440,7 @@ int main(int argc, char **argv, char **envp)
case QEMU_OPTION_fsdev: case QEMU_OPTION_fsdev:
olist = qemu_find_opts("fsdev"); olist = qemu_find_opts("fsdev");
if (!olist) { if (!olist) {
error_report("fsdev is not supported by this qemu build"); error_report("fsdev support is disabled");
exit(1); exit(1);
} }
opts = qemu_opts_parse_noisily(olist, optarg, true); opts = qemu_opts_parse_noisily(olist, optarg, true);
@ -3456,7 +3455,7 @@ int main(int argc, char **argv, char **envp)
olist = qemu_find_opts("virtfs"); olist = qemu_find_opts("virtfs");
if (!olist) { if (!olist) {
error_report("virtfs is not supported by this qemu build"); error_report("virtfs support is disabled");
exit(1); exit(1);
} }
opts = qemu_opts_parse_noisily(olist, optarg, true); opts = qemu_opts_parse_noisily(olist, optarg, true);
@ -3897,7 +3896,7 @@ int main(int argc, char **argv, char **envp)
case QEMU_OPTION_spice: case QEMU_OPTION_spice:
olist = qemu_find_opts("spice"); olist = qemu_find_opts("spice");
if (!olist) { if (!olist) {
error_report("spice is not supported by this qemu build"); error_report("spice support is disabled");
exit(1); exit(1);
} }
opts = qemu_opts_parse_noisily(olist, optarg, false); opts = qemu_opts_parse_noisily(olist, optarg, false);
@ -4250,7 +4249,7 @@ int main(int argc, char **argv, char **envp)
#if defined(CONFIG_OPENGL) #if defined(CONFIG_OPENGL)
error_report("OpenGL is not supported by the display"); error_report("OpenGL is not supported by the display");
#else #else
error_report("QEMU was built without opengl support"); error_report("OpenGL support is disabled");
#endif #endif
exit(1); exit(1);
} }