mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
Add some extra debug output to GAP testing
This commit is contained in:
parent
7fefa9ead2
commit
c1d1d624ef
@ -71,6 +71,8 @@ static char *get_adapter(DBusConnection *conn)
|
|||||||
DBUS_TYPE_INVALID) == FALSE)
|
DBUS_TYPE_INVALID) == FALSE)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
printf("Using default adapter %s\n", path);
|
||||||
|
|
||||||
result = strdup(path);
|
result = strdup(path);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
@ -115,6 +117,8 @@ static char *find_device(DBusConnection *conn, const char *adapter,
|
|||||||
DBUS_TYPE_INVALID) == FALSE)
|
DBUS_TYPE_INVALID) == FALSE)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
printf("Using device %s for address %s\n", path, address);
|
||||||
|
|
||||||
result = strdup(path);
|
result = strdup(path);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
@ -155,6 +159,8 @@ static int remove_device(DBusConnection *conn, const char *adapter,
|
|||||||
|
|
||||||
dbus_message_unref(reply);
|
dbus_message_unref(reply);
|
||||||
|
|
||||||
|
printf("Removed device %s\n", device);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,6 +215,8 @@ static int set_property(DBusConnection *conn, const char *adapter,
|
|||||||
|
|
||||||
dbus_message_unref(reply);
|
dbus_message_unref(reply);
|
||||||
|
|
||||||
|
printf("Set property %s for %s\n", key, adapter);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user