--- client/main.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/client/main.c b/client/main.c index f3369e89a..c435ee677 100644 --- a/client/main.c +++ b/client/main.c @@ -864,7 +864,16 @@ static void cmd_show(int argc, char *argv[]) return; dbus_message_iter_get_basic(&iter, &address); - bt_shell_printf("Controller %s\n", address); + + if (g_dbus_proxy_get_property(proxy, "AddressType", &iter) == TRUE) { + const char *type; + + dbus_message_iter_get_basic(&iter, &type); + + bt_shell_printf("Controller %s (%s)\n", address, type); + } else { + bt_shell_printf("Controller %s\n", address); + } print_property(proxy, "Name"); print_property(proxy, "Alias"); @@ -1435,7 +1444,16 @@ static void cmd_info(int argc, char *argv[]) return; dbus_message_iter_get_basic(&iter, &address); - bt_shell_printf("Device %s\n", address); + + if (g_dbus_proxy_get_property(proxy, "AddressType", &iter) == TRUE) { + const char *type; + + dbus_message_iter_get_basic(&iter, &type); + + bt_shell_printf("Device %s (%s)\n", address, type); + } else { + bt_shell_printf("Device %s\n", address); + } print_property(proxy, "Name"); print_property(proxy, "Alias"); -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html