From: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/hw/audio/soundhw.h | 2 +-
hw/audio/soundhw.c | 4 ++--
system/vl.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/hw/audio/soundhw.h b/include/hw/audio/soundhw.h
index 474c5ff94e5..83b30110834 100644
--- a/include/hw/audio/soundhw.h
+++ b/include/hw/audio/soundhw.h
@@ -7,7 +7,7 @@ void deprecated_register_soundhw(const char *name, const char
*descr,
int isa, const char *typename);
void soundhw_init(void);
-void show_valid_soundhw(void);
+void audio_print_available_models(void);
void select_soundhw(const char *name, const char *audiodev);
#endif
diff --git a/hw/audio/soundhw.c b/hw/audio/soundhw.c
index 2a41e108c02..63a68556352 100644
--- a/hw/audio/soundhw.c
+++ b/hw/audio/soundhw.c
@@ -65,7 +65,7 @@ void deprecated_register_soundhw(const char *name, const char
*descr,
soundhw_count++;
}
-void show_valid_soundhw(void)
+void audio_print_available_models(void)
{
struct soundhw *c;
@@ -102,7 +102,7 @@ void select_soundhw(const char *name, const char *audiodev)
if (!c->name) {
error_report("Unknown audio device model `%s'", name);
- show_valid_soundhw();
+ audio_print_available_models();
exit(1);
}
}
diff --git a/system/vl.c b/system/vl.c
index fd98ea52d9c..17bbc092c87 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -3078,7 +3078,7 @@ void qemu_init(int argc, char **argv)
model = g_strdup(qdict_get_str(dict, "model"));
qdict_del(dict, "model");
if (is_help_option(model)) {
- show_valid_soundhw();
+ audio_print_available_models();
exit(0);
}
}
--
2.51.0