mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/audio: improve error reports
The -audiodev argument is 'model=..', use same terminology. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20251021090317.425409-2-marcandre.lureau@redhat.com> [PMD: Fixed checkpatch.pl issues] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
0305ee8275
commit
047b721c60
+8
-9
@@ -70,13 +70,13 @@ void show_valid_soundhw(void)
|
||||
struct soundhw *c;
|
||||
|
||||
if (soundhw_count) {
|
||||
printf("Valid sound card names (comma separated):\n");
|
||||
for (c = soundhw; c->name; ++c) {
|
||||
printf ("%-11s %s\n", c->name, c->descr);
|
||||
}
|
||||
printf("Valid audio device model names:\n");
|
||||
for (c = soundhw; c->name; ++c) {
|
||||
printf("%-11s %s\n", c->name, c->descr);
|
||||
}
|
||||
} else {
|
||||
printf("Machine has no user-selectable audio hardware "
|
||||
"(it may or may not have always-present audio hardware).\n");
|
||||
printf("Machine has no user-selectable audio hardware "
|
||||
"(it may or may not have always-present audio hardware).\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ void select_soundhw(const char *name, const char *audiodev)
|
||||
struct soundhw *c;
|
||||
|
||||
if (selected) {
|
||||
error_report("only one -soundhw option is allowed");
|
||||
error_report("only one -audio option is allowed");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ void select_soundhw(const char *name, const char *audiodev)
|
||||
}
|
||||
|
||||
if (!c->name) {
|
||||
error_report("Unknown sound card name `%s'", name);
|
||||
error_report("Unknown audio device model `%s'", name);
|
||||
show_valid_soundhw();
|
||||
exit(1);
|
||||
}
|
||||
@@ -140,4 +140,3 @@ void soundhw_init(void)
|
||||
c->init_pci(pci_bus, audiodev_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user