* [PATCH BlueZ v1] shared/shell: Fix not calling pre_run for main menu
@ 2025-07-03 17:32 Luiz Augusto von Dentz
2025-07-03 19:03 ` [BlueZ,v1] " bluez.test.bot
2025-07-03 19:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-07-03 17:32 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
When calling bt_shell_run the main menu pre_run was not being called
which cause tools with just one menu to not work as intended.
Fixes: https://github.com/bluez/bluez/issues/1319
---
src/shared/shell.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 6b4f7a7ef503..ec9e5f7dc984 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1449,6 +1449,9 @@ int bt_shell_run(void)
int status;
const struct queue_entry *submenu;
+ if (data.menu && data.menu->pre_run)
+ data.menu->pre_run(data.menu);
+
for (submenu = queue_get_entries(data.submenus); submenu;
submenu = submenu->next) {
struct bt_shell_menu *menu = submenu->data;
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* RE: [BlueZ,v1] shared/shell: Fix not calling pre_run for main menu
2025-07-03 17:32 [PATCH BlueZ v1] shared/shell: Fix not calling pre_run for main menu Luiz Augusto von Dentz
@ 2025-07-03 19:03 ` bluez.test.bot
2025-07-03 19:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-07-03 19:03 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]
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=978742
---Test result---
Test Summary:
CheckPatch PENDING 0.30 seconds
GitLint PENDING 0.21 seconds
BuildEll PASS 20.30 seconds
BluezMake PASS 2704.02 seconds
MakeCheck PASS 20.18 seconds
MakeDistcheck PASS 197.80 seconds
CheckValgrind PASS 274.51 seconds
CheckSmatch WARNING 302.89 seconds
bluezmakeextell PASS 128.26 seconds
IncrementalBuild PENDING 0.27 seconds
ScanBuild PASS 906.82 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ v1] shared/shell: Fix not calling pre_run for main menu
2025-07-03 17:32 [PATCH BlueZ v1] shared/shell: Fix not calling pre_run for main menu Luiz Augusto von Dentz
2025-07-03 19:03 ` [BlueZ,v1] " bluez.test.bot
@ 2025-07-03 19:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-07-03 19:10 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 3 Jul 2025 13:32:28 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> When calling bt_shell_run the main menu pre_run was not being called
> which cause tools with just one menu to not work as intended.
>
> Fixes: https://github.com/bluez/bluez/issues/1319
>
> [...]
Here is the summary with links:
- [BlueZ,v1] shared/shell: Fix not calling pre_run for main menu
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=655421a96263
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-03 19:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 17:32 [PATCH BlueZ v1] shared/shell: Fix not calling pre_run for main menu Luiz Augusto von Dentz
2025-07-03 19:03 ` [BlueZ,v1] " bluez.test.bot
2025-07-03 19:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox