From patchwork Fri Jun 30 22:33:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 114912 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10717265vqr; Fri, 30 Jun 2023 16:18:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlESUjunqZNAE0i9stRsk5V7QsCmo6G5KADoL3xSXsKS6nbqB0ETDF/ekHEyAiy+JV0okbNK X-Received: by 2002:a17:903:41d1:b0:1b7:fe1b:862c with SMTP id u17-20020a17090341d100b001b7fe1b862cmr3482926ple.62.1688167087073; Fri, 30 Jun 2023 16:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688167087; cv=none; d=google.com; s=arc-20160816; b=deyuuuFd148Ximxg78KBH+DZwMURnGy9mivaun8ArjTBju8AMtQr2S8+LyxsNMypdx W71NY4aApcr5V+KrueBrwDkVP/yhw2nCsqurmYRPy16GlHu7Hb9R9HqCq1w7f6bWn0zn oaS0ag77Uk5FFnyk5vnxZvKT9rdrMSwZ9aoKRASaj0zJ2knYCpDFd7zvoFDafpfQ5TQj Is4ySZtjr4sH63z++ycau/CJnFStrEH46au1K41qcFDQuyt81r8A/pR2lWGDdUjPn4QT cp6E4NAizTcTwficbmmMP5lYsVey2CDomwQtOMahQ7eC3ZqrkXK9n1Ud7whPl7N2Immm li0w== 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:cc:to:from :dkim-signature; bh=hxfCoOso1eZfolB7gUqXEtVsJqGJE4ixGbTkHqSu72o=; fh=SQljAXgUV5jhA9EE8xL7/thT6xIi1kqlJVG0bNl7NtQ=; b=ZaJei6r3KlaigfYs19aug5gITGo5oU5f8P6mBSQK5F5NNMvceDVVTkZHYx4dZVTPup Ox7tU2Yg2Xfe6FwaiujNWICLYraR2Oqvc6Zm8aewpjZpVtYQRd+1awwRW9Pn0dmyI1jf Roc+2byA0udu9Skt+tWxAsqDP2molsvTkkhggLBS9P+lVuHH6oDAoihienxygZYF8PfU VJFQXp5Uaq6XovB5e5i+zBs9JRvTJovzH9FGOwmGCLMM9jsnrPUmNYFdUKaSETw3IYcg N7Wlmrlvm834a047mabM3T2mX1SY+wyTl1tzH8JpVQCJdW/pE1iENZdAY5FMo5YT14HX ikJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C8Lei+oK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c21-20020a170902849500b001a9265e6fdasi12400786plo.268.2023.06.30.16.17.51; Fri, 30 Jun 2023 16:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=C8Lei+oK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232477AbjF3Wdw (ORCPT + 99 others); Fri, 30 Jun 2023 18:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232663AbjF3Wdr (ORCPT ); Fri, 30 Jun 2023 18:33:47 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E93633C24 for ; Fri, 30 Jun 2023 15:33:46 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-262ff3a4659so1622769a91.0 for ; Fri, 30 Jun 2023 15:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688164426; x=1690756426; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hxfCoOso1eZfolB7gUqXEtVsJqGJE4ixGbTkHqSu72o=; b=C8Lei+oKaIkEOJW4Zxcm3YA1B+r3cUE9UbUJ6YJL+vcSf0La47MCNSSaQUSbG1CF8r GGaSfn2RB4Lo2InoqkZf0t7WYWI0gi+X/Yw5OwQZsrXfdok9x6Ymci1S9s6xrmjdxqHN K2mIvnQ2vFbpfX7lJ/oXkMv10xlgRjzeociy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688164426; x=1690756426; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hxfCoOso1eZfolB7gUqXEtVsJqGJE4ixGbTkHqSu72o=; b=gAXMsZSXdNyB/iwcZfp+MIgoITSQ4vZFC/8eSHX9pjZvq1P4i46QFGEPwZ9jejBrEy llqgHXYictqYChJDMuhMWu51NZ/crEEV0OS44lyA7RNYD3Ij27E5xCmx2DAM1or1UjVa b+czV285cQfYegDWPek+K575D/rx3IIC/62v22kUg/1o5F50inf9HXf9L+FdE3KEl8pZ gHDKAw8de6QcwvuBfRTOah9zmV8rP2A9r4C6Z891fySu+P+Zcq1bEo7kInXa2Kw7WvS9 gfp2cOY0PYXTR3v87SyP55Wg1bmHym80vPhm9icFII4S6BQE1lkO+U21mt8d6BkXdIoQ xClw== X-Gm-Message-State: ABy/qLYb59R5otFZGEGoU7J7m5qKjqIPGZby3YokVQRqHg5d90bd73Db FpmRsfEbABaUKMqzlEQeNfwQ8owFz9kSduXTuH/Eng== X-Received: by 2002:a17:90a:c684:b0:25b:d8fe:2c92 with SMTP id n4-20020a17090ac68400b0025bd8fe2c92mr3130810pjt.48.1688164426450; Fri, 30 Jun 2023 15:33:46 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:e9c4:8375:7234:e6c2]) by smtp.gmail.com with ESMTPSA id em23-20020a17090b015700b0026356c056cbsm3105864pjb.34.2023.06.30.15.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 15:33:45 -0700 (PDT) From: Douglas Anderson To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Stephen Boyd , Douglas Anderson , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] Bluetooth: hci_sync: Don't double print name in add/remove adv_monitor Date: Fri, 30 Jun 2023 15:33:15 -0700 Message-ID: <20230630153315.v3.2.I8b6365c6a13afc74d7a91324dad73601a42038c9@changeid> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog In-Reply-To: <20230630153315.v3.1.I3b7c8905728f3124576361ca35ed28e37f12f5d1@changeid> References: <20230630153315.v3.1.I3b7c8905728f3124576361ca35ed28e37f12f5d1@changeid> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770171491483944078?= X-GMAIL-MSGID: =?utf-8?q?1770171491483944078?= The hci_add_adv_monitor() hci_remove_adv_monitor() functions call bt_dev_dbg() to print some debug statements. The bt_dev_dbg() macro automatically adds in the device's name. That means that we shouldn't include the name in the bt_dev_dbg() calls. Suggested-by: Luiz Augusto von Dentz Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - ("Don't double print name...") new for v2. net/bluetooth/hci_core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index dbb2043a9112..de15a2c77e9f 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -1949,14 +1949,14 @@ int hci_add_adv_monitor(struct hci_dev *hdev, struct adv_monitor *monitor) switch (hci_get_adv_monitor_offload_ext(hdev)) { case HCI_ADV_MONITOR_EXT_NONE: - bt_dev_dbg(hdev, "%s add monitor %d status %d", hdev->name, + bt_dev_dbg(hdev, "add monitor %d status %d", monitor->handle, status); /* Message was not forwarded to controller - not an error */ break; case HCI_ADV_MONITOR_EXT_MSFT: status = msft_add_monitor_pattern(hdev, monitor); - bt_dev_dbg(hdev, "%s add monitor %d msft status %d", hdev->name, + bt_dev_dbg(hdev, "add monitor %d msft status %d", monitor->handle, status); break; } @@ -1976,15 +1976,15 @@ static int hci_remove_adv_monitor(struct hci_dev *hdev, switch (hci_get_adv_monitor_offload_ext(hdev)) { case HCI_ADV_MONITOR_EXT_NONE: /* also goes here when powered off */ - bt_dev_dbg(hdev, "%s remove monitor %d status %d", hdev->name, + bt_dev_dbg(hdev, "remove monitor %d status %d", monitor->handle, status); goto free_monitor; case HCI_ADV_MONITOR_EXT_MSFT: handle = monitor->handle; status = msft_remove_monitor(hdev, monitor); - bt_dev_dbg(hdev, "%s remove monitor %d msft status %d", - hdev->name, handle, status); + bt_dev_dbg(hdev, "remove monitor %d msft status %d", + handle, status); break; }