Received: by 2002:a05:7412:4e10:b0:e2:908c:2ebd with SMTP id gb16csp26828rdb; Mon, 6 Nov 2023 22:31:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf7IWUr3sJc3FsdpgIe98uZbh4DM+5aneKCL40cBB/K2Gr5Q8D8qUUrL6yngFnYeL1OfSH X-Received: by 2002:a05:6830:2b23:b0:6b4:5ed3:8246 with SMTP id l35-20020a0568302b2300b006b45ed38246mr45891216otv.2.1699338700446; Mon, 06 Nov 2023 22:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699338700; cv=none; d=google.com; s=arc-20160816; b=KDgwcvBnHJce9FNGE1qOu1ZTE2Jx8rNbnG+ua4ryz2saj7cWfvKabsoKAD0c7cc08X lkgaUKoTIFRfvy3zKctZSBDw75eHlTT9Y8EY+nEU8TOQ4q+D7vlDtYDdEy4EW34akcjU dCxMrf7BzinaCyQfRa1vrGvahxM23pVWz9hsasfD88lV9QGYyaU1IEINXFfGhSmTfIx6 KTXDMnJFe2OfhdwdtOLNLlVdMNO1iReVqN5E6FOXHcHxkLsNkX00IgRlK4jiEI9uycUs T6VDGZwxQoFqstWYpoX5xJAITnKeyWGMeHVHSn8JD2wYGYPy60f0dAWDJCPJXuSwn/ij fiVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O6qO0ic/7eOs8F1j48khb+oTEk7wXYJdWRnMJmr5pPM=; fh=DjwfFFCj0SvC9JrAWbE76Dpi+n3heb+naeKjUu1QWk4=; b=r10aYzQCbVavE1em87hdHfjZhwUnmrx5BKmno5ptCKecu6U5mI9aQJhAnwT7e0vzXN X0a26LKBRCakVxS4LdeHEIhtakoprzQDdaGHc9QwHXD+C6NHi8xDXr/0e4DMrEtg70nH 7b2m71iWi41QOKwHdgsTRcjO3saOqgLoL0BPEZFVfL3k9Ubiou9A3KGW1ZU9LdlM+D5o 0Kgc1bm/Fcsz9Ip96/wChHVvXMuNL/azZVQSs2aEIBpavGkc5icWRVBSZX9QADQzkwl/ dynzrN1p6iZRcbFg3bdX5/SLzsj7NsYaZVhcKyJfMUP1R8igqzaMDpG4vHRxU+5ol90r 8ByA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Jf1/0XV+"; spf=pass (google.com: domain of linux-bluetooth+bounces-3-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u14-20020a056a00124e00b006c39efc77aesi7911044pfi.348.2023.11.06.22.31.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 22:31:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Jf1/0XV+"; spf=pass (google.com: domain of linux-bluetooth+bounces-3-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 94FB5B20B52 for ; Tue, 7 Nov 2023 06:31:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3F189447; Tue, 7 Nov 2023 06:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jf1/0XV+" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27220CA43 for ; Tue, 7 Nov 2023 06:31:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A17DC433C7; Tue, 7 Nov 2023 06:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1699338690; bh=ZbbXEst1MN/YJ42gHNB9eN+R+I0GdIoD7UuNAgu6/yQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jf1/0XV+gkdPJBLGuEoR2UXNy7zwrTPyTD2jOyIuNHR0KzHKF1XISytb25na/r5Y8 kvuGsJd5Cqg2pk8fq1Cvtlqb4iRJjEd31GSk+J+l9rmMKy5V2eKeG0JRudF/+lFLza iqNbYODmazsUFGcYdSb0qQH20121Fnr2zo4JY9v4= Date: Tue, 7 Nov 2023 07:31:27 +0100 From: Greg KH To: Yuran Pereira Cc: linux-bluetooth@vger.kernel.org, johan.hedberg@gmail.com, marcel@holtmann.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH 2/2] Bluetooth: Replaces printk with pr_debug in bt_dbg Message-ID: <2023110752-headset-gains-41a7@gregkh> References: Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Nov 07, 2023 at 03:56:08AM +0530, Yuran Pereira wrote: > bt_dbg() uses printk, as opposed to other functions in this file > which use pr_* family of logging functions. > > This patch changes that by replacing `printk(KERN_DEBUG` with > the equivalent pr_debug() call which makes the overall file > look more uniform and cleaner. > > Signed-off-by: Yuran Pereira > --- > net/bluetooth/lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c > index 063032fe9c68..96ba39f8b461 100644 > --- a/net/bluetooth/lib.c > +++ b/net/bluetooth/lib.c > @@ -329,7 +329,7 @@ void bt_dbg(const char *format, ...) > vaf.fmt = format; > vaf.va = &args; > > - printk(KERN_DEBUG pr_fmt("%pV"), &vaf); > + pr_debug("%pV", &vaf); You might have just changed the functionality here, are you SURE this is identical to the original code? How was it tested? I'm not saying this is a bad idea to do, just be aware of the consequences for this change and document it properly (hint, the changelog does not document the user-visible change that just happened.) Note, pr_debug() is NOT identical to printk(), look at the source for the full details. thanks, greg k-h