mirror of
https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
synced 2025-06-03 06:30:16 +00:00
Add version logging to modules
This commit is contained in:
parent
b4d03c5545
commit
9fd159e88e
@ -436,6 +436,17 @@ int pa__init(pa_module*m) {
|
|||||||
|
|
||||||
pa_assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
|
/* Check the runtime library version matches the build version */
|
||||||
|
if (strcmp(pa_get_library_version(), pa_get_headers_version()) == 0)
|
||||||
|
{
|
||||||
|
pa_log_notice("Build library version %s", pa_get_headers_version());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pa_log_warn("Runtime version '%s' differs from build version '%s'",
|
||||||
|
pa_get_library_version(), pa_get_headers_version());
|
||||||
|
}
|
||||||
|
|
||||||
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||||
pa_log("Failed to parse module arguments.");
|
pa_log("Failed to parse module arguments.");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -396,6 +396,21 @@ int pa__init(pa_module *m) {
|
|||||||
|
|
||||||
pa_assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
|
/* Check the runtime library version matches the build version */
|
||||||
|
if (strcmp(pa_get_library_version(), pa_get_headers_version()) == 0)
|
||||||
|
{
|
||||||
|
pa_log_notice("Build library version %s", pa_get_headers_version());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pa_log_warn("Runtime version '%s' differs from build version '%s'",
|
||||||
|
pa_get_library_version(), pa_get_headers_version());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||||
|
pa_log("Failed to parse module arguments.");
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||||
pa_log("Failed to parse module arguments.");
|
pa_log("Failed to parse module arguments.");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user