2015-02-03 06:30:43

by Gowtham Anandha Babu

[permalink] [raw]
Subject: [PATCH] tools/btgatt-server: Fix help message for GATT

Added '\n' to make help message looks good as below:
btgatt-server
Usage:
btgatt-server [options]
Options:
-i, --index <id> Specify adapter index, e.g. hci0
-m, --mtu <mtu> The ATT MTU to use
-s, --security-level <sec> Set security level (low|medium|high)
-v, --verbose Enable extra logging
-r, --heart-rate Enable Heart Rate service
-h, --help Display help
---
tools/btgatt-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c
index f6ad8c3..d27cf10 100644
--- a/tools/btgatt-server.c
+++ b/tools/btgatt-server.c
@@ -631,7 +631,7 @@ static void usage(void)
"\t-s, --security-level <sec>\tSet security level (low|"
"medium|high)\n"
"\t-v, --verbose\t\t\tEnable extra logging\n"
- "\t-r, --heart-rate\t\tEnable Heart Rate service"
+ "\t-r, --heart-rate\t\tEnable Heart Rate service\n"
"\t-h, --help\t\t\tDisplay help\n");
}

--
1.9.1



2015-02-05 10:31:48

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH] tools/btgatt-server: Fix help message for GATT

Hi Gowtham,

On Thu, Feb 5, 2015 at 11:32 AM, Gowtham Anandha Babu
<[email protected]> wrote:
> Ping.
>
>> -----Original Message-----
>> From: [email protected] [mailto:linux-bluetooth-
>> [email protected]] On Behalf Of Gowtham Anandha Babu
>> Sent: Tuesday, February 03, 2015 12:01 PM
>> To: [email protected]
>> Cc: [email protected]; [email protected]; Gowtham Anandha
>> Babu
>> Subject: [PATCH] tools/btgatt-server: Fix help message for GATT
>>
>> Added '\n' to make help message looks good as below:
>> btgatt-server
>> Usage:
>> btgatt-server [options]
>> Options:
>> -i, --index <id> Specify adapter index, e.g. hci0
>> -m, --mtu <mtu> The ATT MTU to use
>> -s, --security-level <sec> Set security level (low|medium|high)
>> -v, --verbose Enable extra logging
>> -r, --heart-rate Enable Heart Rate service
>> -h, --help Display help
>> ---
>> tools/btgatt-server.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c index
>> f6ad8c3..d27cf10 100644
>> --- a/tools/btgatt-server.c
>> +++ b/tools/btgatt-server.c
>> @@ -631,7 +631,7 @@ static void usage(void)
>> "\t-s, --security-level <sec>\tSet security level (low|"
>>
>> "medium|high)\n"
>> "\t-v, --verbose\t\t\tEnable extra logging\n"
>> - "\t-r, --heart-rate\t\tEnable Heart Rate service"
>> + "\t-r, --heart-rate\t\tEnable Heart Rate service\n"
>> "\t-h, --help\t\t\tDisplay help\n");
>> }
>>
>> --
>> 1.9.1

Applied, thanks.


--
Luiz Augusto von Dentz

2015-02-05 09:32:03

by Gowtham Anandha Babu

[permalink] [raw]
Subject: RE: [PATCH] tools/btgatt-server: Fix help message for GATT

Ping.

> -----Original Message-----
> From: [email protected] [mailto:linux-bluetooth-
> [email protected]] On Behalf Of Gowtham Anandha Babu
> Sent: Tuesday, February 03, 2015 12:01 PM
> To: [email protected]
> Cc: [email protected]; [email protected]; Gowtham Anandha
> Babu
> Subject: [PATCH] tools/btgatt-server: Fix help message for GATT
>
> Added '\n' to make help message looks good as below:
> btgatt-server
> Usage:
> btgatt-server [options]
> Options:
> -i, --index <id> Specify adapter index, e.g. hci0
> -m, --mtu <mtu> The ATT MTU to use
> -s, --security-level <sec> Set security level (low|medium|high)
> -v, --verbose Enable extra logging
> -r, --heart-rate Enable Heart Rate service
> -h, --help Display help
> ---
> tools/btgatt-server.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c index
> f6ad8c3..d27cf10 100644
> --- a/tools/btgatt-server.c
> +++ b/tools/btgatt-server.c
> @@ -631,7 +631,7 @@ static void usage(void)
> "\t-s, --security-level <sec>\tSet security level (low|"
>
> "medium|high)\n"
> "\t-v, --verbose\t\t\tEnable extra logging\n"
> - "\t-r, --heart-rate\t\tEnable Heart Rate service"
> + "\t-r, --heart-rate\t\tEnable Heart Rate service\n"
> "\t-h, --help\t\t\tDisplay help\n");
> }
>
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in
> the body of a message to [email protected] More majordomo
> info at http://vger.kernel.org/majordomo-info.html