From ed78d12fe9784cd5d861d826b671795ad01d1873 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 12 Nov 2015 13:21:08 +0200 Subject: [PATCH] client: Make GATT listing more readable --- client/gatt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/gatt.c b/client/gatt.c index 0a3adb8c4..e4a802c3d 100644 --- a/client/gatt.c +++ b/client/gatt.c @@ -75,12 +75,13 @@ static void print_service(GDBusProxy *proxy, const char *description) if (!text) text = uuid; - rl_printf("%s%s%sService %s %s %s\n", + rl_printf("%s%s%s%s Service\n\t%s\n\t%s\n", description ? "[" : "", description ? : "", description ? "] " : "", + primary ? "Primary" : "Secondary", g_dbus_proxy_get_path(proxy), - text, primary ? "(Primary)" : "(Secondary)"); + text); } void gatt_add_service(GDBusProxy *proxy) @@ -111,7 +112,7 @@ static void print_characteristic(GDBusProxy *proxy, const char *description) if (!text) text = uuid; - rl_printf("%s%s%sCharacteristic %s %s\n", + rl_printf("%s%s%sCharacteristic\n\t%s\n\t%s\n", description ? "[" : "", description ? : "", description ? "] " : "", @@ -176,7 +177,7 @@ static void print_descriptor(GDBusProxy *proxy, const char *description) if (!text) text = uuid; - rl_printf("%s%s%sDescriptor %s %s\n", + rl_printf("%s%s%sDescriptor\n\t%s\n\t%s\n", description ? "[" : "", description ? : "", description ? "] " : "", -- 2.47.3