Re: [PATCHv5 08/14] tools/btgatt-client: Print type of service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marcin,

On Thursday 16 October 2014 12:17:20 Marcin Kraglak wrote:
> ---
>  tools/btgatt-client.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
> index d900e08..5c692ff 100644
> --- a/tools/btgatt-client.c
> +++ b/tools/btgatt-client.c
> @@ -182,8 +182,9 @@ static void print_service(const bt_gatt_service_t
> *service) return;
>  	}
> 
> -	printf(COLOR_RED "service" COLOR_OFF " - start: 0x%04x, "
> +	printf(COLOR_RED "service %s" COLOR_OFF " - start: 0x%04x, "
>  				"end: 0x%04x, uuid: ",
> +				service->primary ? "primary" : "second.",
>  				service->start_handle, service->end_handle);

As we discussed offline, maybe having "type: foo" would be nicer instead of 
"serivce second." ?

>  	print_uuid(service->uuid);

-- 
Szymon K. Janc
szymon.janc@xxxxxxxxx
--
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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux