ao_pulse: remove unnecessary casts and use the proper print specifier

This commit is contained in:
Kacper Michajłow
2025-01-05 22:00:03 +01:00
parent 31d4515157
commit d66047589a

View File

@@ -314,8 +314,8 @@ static int pa_init_boilerplate(struct ao *ao)
}
MP_VERBOSE(ao, "Library version: %s\n", pa_get_library_version());
MP_VERBOSE(ao, "Proto: %lu\n",
(long)pa_context_get_protocol_version(priv->context));
MP_VERBOSE(ao, "Proto: %" PRIu32 "\n",
pa_context_get_protocol_version(priv->context));
pa_context_set_state_callback(priv->context, context_state_cb, ao);
pa_context_set_subscribe_callback(priv->context, subscribe_cb, ao);
@@ -333,8 +333,8 @@ static int pa_init_boilerplate(struct ao *ao)
pa_threaded_mainloop_wait(priv->mainloop);
}
MP_VERBOSE(ao, "Server proto: %lu\n",
(long)pa_context_get_server_protocol_version(priv->context));
MP_VERBOSE(ao, "Server proto: %" PRIu32 "\n",
pa_context_get_server_protocol_version(priv->context));
pa_threaded_mainloop_unlock(priv->mainloop);
return 0;