Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5933859rwb; Wed, 21 Sep 2022 14:52:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Tx7HYb0e2taEEdM16i3Y4yIAx9eITxHOx1yQIfnV+w67rpXwl9B3sfzuWq7YSMQDk4cDP X-Received: by 2002:a05:6a00:1a8d:b0:541:15a0:2cf7 with SMTP id e13-20020a056a001a8d00b0054115a02cf7mr215647pfv.70.1663797166539; Wed, 21 Sep 2022 14:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663797166; cv=none; d=google.com; s=arc-20160816; b=PVGlZB8AXA6ubZLag3RQmx5x4TTb63USRAHNj/UP+B/joNiInbY3+qsM9yA0OMVYve 5mhZySfrnA8LO7LnDrCm3vHK9VNI1omv3GHHsozdGBF3IbOS7wKKGzjUsYQR1Aj1rnmI pMeGPosDJum8PuXkHKuj+V1HECjHyepReE/TvQWxIp/Fy1yq5dcB1f98j7Eo42NJFwJr M6HdLAi73ySRdQpVpz/XhSFDUlTwWv/9KxW8sRwqKKZh5bVE+/Zer4qWKOyV0Bq8cQ3H zEAa+2YEC/svyo/YtsUEvWH3gXv3zr+pX4SqxiSlKgW2S/v0SfkjvaiEpKVH+7NqvexD hL6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=6W9MrSFw3Dj8LODmWhYflLLrYCpPux4iXSGDv9dO1HI=; b=Km7TbUBoPCHE4idp5rlC919fPtDKIWWD4voTLQUL/em2xh8b8D/OlF/HMJluGXxlMO 1JqYK0FJLv7rhd2WSuCHTvxzX/8+BhPzf+dKhl8oVBR53tM/waReMYsUqBnYNAvr/aGC AoNcXQHsgbtgP+rBgiKKnpNIWTf5U0anX87j1v9WGPdTPWerN4FseecROdTsdwdjBaPd hHLMklj18yjGVP6ZO9fJP0FqTELlmRS0dj49zJkY1Ky/XguMocgruzSW8VAohHA7Vn1F dyczDvBCpWhmuc9vkFDDgr2ZA/3mJvwbn6G0br8SVDc/CebBvF0TpQMEgkTWcX9SnNMl /oTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OFFHg43n; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a632155000000b00438ce28756csi3993417pgm.646.2022.09.21.14.51.33; Wed, 21 Sep 2022 14:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OFFHg43n; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbiIUVrD (ORCPT + 99 others); Wed, 21 Sep 2022 17:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbiIUVrC (ORCPT ); Wed, 21 Sep 2022 17:47:02 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB4E9A6AFF for ; Wed, 21 Sep 2022 14:47:01 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id r23so7237913pgr.6 for ; Wed, 21 Sep 2022 14:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date; bh=6W9MrSFw3Dj8LODmWhYflLLrYCpPux4iXSGDv9dO1HI=; b=OFFHg43n4qQXqU+nTjmRZSeWCxlW8N3qECUsa9mGZSNdmqN/0NjxHsmvdKKIiHA9wX VEi5af7NHiwDcpJE0xOWEqteaCQ+IQgPSaJVLS+o3IQ+esrwYabGdXhQ9bI0GLhXr1pu rsdyC/2ZeqK20XSOzcPg1YCTiDznbSpjuKYDjIJTh7dnGsqQ34GAB7JsMEJIbBzZWepi YxG7YvAKCNdEWyd0EMiyQOX5bteBwQqpVU38GxmUtFQiB+NMc6jh+hlyjLpjZ7QbFC0V M2f70Q5l873nrdX31ust9ne0QKTMPLrT8GnSGdq7OTJBHUC001xNcKFupJM/2fQfB733 FH3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date; bh=6W9MrSFw3Dj8LODmWhYflLLrYCpPux4iXSGDv9dO1HI=; b=SIp8yfrIXST2kV6ZHOXGv1spJ7daZ4LfpaP59aFRRUmlbfDzxpMZMVP2TEbI6K8WiF sOW76wjivC52ZJ9ckcIZFMqxNCo1vmeHD4GK2IScX9nKtNzhD6prYRU2zwSxJDriV+7S grqdP3Z0LEhyjY7F8ImCQZuIhBvD4KoHcxoQ+SjvAP1mOFW+bQzCpcAwSElw3T8J4eFa RnnJyuaaJnpTzNTR28veX7aLlsIB9TEJCu/qwwHoEh5sXTdAuUkpUdpITQaCCFebIkfh yVejVaEmv7/3nso2AVChoEvo8ZvYyEkZaWZJHCvG5lIjrWJFELtqt3qjoyfrbpGyw2xJ QGuA== X-Gm-Message-State: ACrzQf1JixK0RjWihd/o9Bh6bkMoaVRvbFnELS+RERnY3UjlA7l1m5I6 aPO6MQtbqE2tfDP9el8baB+FFmoMBiU= X-Received: by 2002:a63:243:0:b0:43c:75c:d92a with SMTP id 64-20020a630243000000b0043c075cd92amr195269pgc.497.1663796820823; Wed, 21 Sep 2022 14:47:00 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id t11-20020a170902e84b00b001782a6fbcacsm2506526plg.101.2022.09.21.14.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 14:47:00 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 3/3] client/gatt: Fix notification enabled/disabled output Date: Wed, 21 Sep 2022 14:46:56 -0700 Message-Id: <20220921214656.2241730-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220921214656.2241730-1-luiz.dentz@gmail.com> References: <20220921214656.2241730-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz When notifications are enabled/disable the output was not print a new line. --- client/gatt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/gatt.c b/client/gatt.c index 4c1efaf75ac8..efd736b2359a 100644 --- a/client/gatt.c +++ b/client/gatt.c @@ -2518,7 +2518,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"); @@ -2538,7 +2538,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"); -- 2.37.3