client/player: Fix select/unselect reply prints
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Fri, 25 Oct 2024 14:28:42 +0000 (17:28 +0300)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 20 Feb 2025 07:43:24 +0000 (16:43 +0900)
This updates the shell print messages for the transport select/unselect
method replies. The bluetoothctl log below shows the fixed result:

client/bluetoothctl
[bluetooth]# endpoint.register 00001851-0000-1000-8000-00805f9b34fb 0x06
[/local/endpoint/ep0] Auto Accept (yes/no): y
[/local/endpoint/ep0] Max Transports (auto/value): a
[/local/endpoint/ep0] Locations: 1
[/local/endpoint/ep0] Supported Context (value): 1
Capabilities:
  03 01 ff 00 02 02 03 05 04 1a 00 f0 00 02 03 01
Metadata:
[bluetooth]# Endpoint /local/endpoint/ep0 registered
[bluetooth]# scan on
[bluetooth]# [NEW] Device 17:7A:80:64:A7:93 17-7A-80-64-A7-93
[17-7A-80-64-A7-93]# [NEW] Transport
                /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# transport.select
                /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# [CHG] Transport
    /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: broadcasting
[17-7A-80-64-A7-93]# Select successful
[17-7A-80-64-A7-93]# transport.unselect
                /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# [CHG] Transport
    /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: idle
[17-7A-80-64-A7-93]# Unselect successful

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
client/player.c

index 4b4145da485c84f18240ad08d5fce5028311b01f..c2b67ae209ccc4c9e537eeb58e7847e73c6fc22f 100644 (file)
@@ -4871,7 +4871,7 @@ static void select_reply(DBusMessage *message, void *user_data)
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
-       bt_shell_printf("Select successful");
+       bt_shell_printf("Select successful\n");
 
        return bt_shell_noninteractive_quit(EXIT_SUCCESS);
 }
@@ -4888,7 +4888,7 @@ static void unselect_reply(DBusMessage *message, void *user_data)
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
-       bt_shell_printf("Select successful");
+       bt_shell_printf("Unselect successful\n");
 
        return bt_shell_noninteractive_quit(EXIT_SUCCESS);
 }