client/gatt: Fix notification enabled/disabled output
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 21 Sep 2022 21:45:03 +0000 (14:45 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
When notifications are enabled/disable the output was not print a new
line.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client/gatt.c

index d053865..3a08f05 100755 (executable)
@@ -2517,7 +2517,7 @@ static DBusMessage *chrc_start_notify(DBusConnection *conn, DBusMessage *msg,
 
        chrc->notifying = true;
        bt_shell_printf("[" COLORED_CHG "] Attribute %s (%s) notifications "
-                       "enabled", chrc->path, bt_uuidstr_to_str(chrc->uuid));
+                       "enabled\n", chrc->path, bt_uuidstr_to_str(chrc->uuid));
        g_dbus_emit_property_changed(conn, chrc->path, CHRC_INTERFACE,
                                                        "Notifying");
 
@@ -2537,7 +2537,8 @@ static DBusMessage *chrc_stop_notify(DBusConnection *conn, DBusMessage *msg,
 
        chrc->notifying = false;
        bt_shell_printf("[" COLORED_CHG "] Attribute %s (%s) notifications "
-                       "disabled", chrc->path, bt_uuidstr_to_str(chrc->uuid));
+                       "disabled\n", chrc->path,
+                       bt_uuidstr_to_str(chrc->uuid));
        g_dbus_emit_property_changed(conn, chrc->path, CHRC_INTERFACE,
                                                        "Notifying");