From eaaa1f7d261941ecda4e119890021f9a84b2e27b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 29 Dec 2012 19:54:30 -0800 Subject: client: Show adapter alias property as well --- client/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/main.c b/client/main.c index 4e860137f..529e7f318 100644 --- a/client/main.c +++ b/client/main.c @@ -90,7 +90,7 @@ static void print_adapter(GDBusProxy *proxy, const char *description) dbus_message_iter_get_basic(&iter, &address); - if (g_dbus_proxy_get_property(proxy, "Name", &iter) == TRUE) + if (g_dbus_proxy_get_property(proxy, "Alias", &iter) == TRUE) dbus_message_iter_get_basic(&iter, &name); else name = ""; @@ -440,6 +440,7 @@ static void cmd_show(const char *arg) rl_printf("Controller %s\n", address); print_property(proxy, "Name"); + print_property(proxy, "Alias"); print_property(proxy, "Class"); print_property(proxy, "Powered"); print_property(proxy, "Discoverable"); -- cgit v1.2.3