diff mbox series

[BlueZ] client: Fix settingof advertisement interval

Message ID 20220520234151.19286-1-inga.stotland@intel.com (mailing list archive)
State Accepted
Commit 79fe529d64855e1e482d3c265d89b7bbe7c99ab9
Headers show
Series [BlueZ] client: Fix settingof advertisement interval | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/checkpatch success Checkpatch PASS
tedd_an/gitlint success Gitlint PASS
tedd_an/setupell success Setup ELL PASS
tedd_an/buildprep success Build Prep PASS
tedd_an/build success Build Configuration PASS
tedd_an/makecheck success Make Check PASS
tedd_an/makecheckvalgrind success Make Check PASS
tedd_an/makedistcheck success Make Distcheck PASS
tedd_an/build_extell success Build External ELL PASS
tedd_an/build_extell_make success Build Make with External ELL PASS

Commit Message

Stotland, Inga May 20, 2022, 11:41 p.m. UTC
This fixes incorrect argument read when using "interval" command
in "advertisement" submenu
---
 client/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

bluez.test.bot@gmail.com May 21, 2022, 2:42 a.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=643797

---Test result---

Test Summary:
CheckPatch                    PASS      1.08 seconds
GitLint                       PASS      0.74 seconds
Prep - Setup ELL              PASS      42.95 seconds
Build - Prep                  PASS      0.64 seconds
Build - Configure             PASS      8.42 seconds
Build - Make                  PASS      1388.92 seconds
Make Check                    PASS      11.32 seconds
Make Check w/Valgrind         PASS      432.13 seconds
Make Distcheck                PASS      212.52 seconds
Build w/ext ELL - Configure   PASS      8.00 seconds
Build w/ext ELL - Make        PASS      1287.78 seconds
Incremental Build with patchesPASS      0.00 seconds



---
Regards,
Linux Bluetooth
patchwork-bot+bluetooth@kernel.org May 23, 2022, 8:50 p.m. UTC | #2
Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Fri, 20 May 2022 16:41:51 -0700 you wrote:
> This fixes incorrect argument read when using "interval" command
> in "advertisement" submenu
> ---
>  client/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - [BlueZ] client: Fix settingof advertisement interval
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=79fe529d6485

You are awesome, thank you!
diff mbox series

Patch

diff --git a/client/main.c b/client/main.c
index ccbfc620b..1df94f000 100644
--- a/client/main.c
+++ b/client/main.c
@@ -2768,7 +2768,7 @@  static void cmd_advertise_interval(int argc, char *argv[])
 	max = min;
 
 	if (argc > 2) {
-		max = strtol(argv[1], &endptr, 0);
+		max = strtol(argv[2], &endptr, 0);
 		if (!endptr || *endptr != '\0' || max < 20 || max > 10485) {
 			bt_shell_printf("Invalid argument\n");
 			return bt_shell_noninteractive_quit(EXIT_FAILURE);