Commit abab35ee authored by João Paulo Rechi Vita's avatar João Paulo Rechi Vita
Browse files

bluetooth: Add debug logging to profile creation

parent d87e439b
Pipeline #37893 passed with stage
in 5 minutes and 7 seconds
......@@ -1952,11 +1952,18 @@ static int add_card(struct userdata *u) {
if (uuid_to_profile(uuid, &profile) < 0)
if (pa_hashmap_get(data.profiles, pa_bluetooth_profile_to_string(profile)))
pa_log_debug("Trying to create profile %s (%s) for device %s (%s)",
pa_bluetooth_profile_to_string(profile), uuid, d->alias, d->address);
if (pa_hashmap_get(data.profiles, pa_bluetooth_profile_to_string(profile))) {
pa_log_debug("%s already exists", pa_bluetooth_profile_to_string(profile));
if (!pa_bluetooth_device_supports_profile(d, profile))
if (!pa_bluetooth_device_supports_profile(d, profile)) {
pa_log_debug("%s is not supported by the device or adapter", pa_bluetooth_profile_to_string(profile));
cp = create_card_profile(u, profile, data.ports);
pa_hashmap_put(data.profiles, cp->name, cp);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment