Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1265982rdb; Tue, 30 Jan 2024 13:03:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdhZEr+tZT8LyX2oyY0MBx+4vaAV7kd5ZfdyrWcea6alvv3pgio9yxw1ZdLFvTNXrf8gXh X-Received: by 2002:a05:6214:1c0e:b0:68c:64b8:a1d6 with SMTP id u14-20020a0562141c0e00b0068c64b8a1d6mr1864904qvc.16.1706648632518; Tue, 30 Jan 2024 13:03:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706648632; cv=pass; d=google.com; s=arc-20160816; b=YolKzsEFkckgx0e37FPph9+VVMMYtB47lJWuONinbCpEEF6TDx/n0V4AzdfnDSX6jO Ny/gkq9h63ZhiCLT0xsnHRTKo6w16CEvPIn3eueEL8Z3RYWKX4HTeE/FAN7UwV6ITtCr RlN2r5AwU4iZjGTY4Ota4fB6O4Adv+wRT7tGV6yPf8QJtPgMEgHWIGMz4ANZEG5NJFHR wl7lRz1pVzF84rkveY2cmmXS9RI9LuzsG3jXFGuQRMpXraVBr8NAfYf5AGQT2nCxElK1 ovQOxG50jmXxXdB1Ie28sJpZWcwE92JBGC0cBQrZS7li9SChkyM4/0Y5kCD60ekZ5tBl jL8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=jlbymONYyYcCqv/YNvmte1jsEk92RWydj8O4kkJ1L60=; fh=wnAxtYS08JxXTUAjNOrGG0gJxyscdHY1nLQncOqK6a8=; b=ak0xY4nNxFZVUWg0ugQNNK8oeBVZjoDI8HaxpMLjc38ss0WRM4pMfZC7Y5Sx1UUpJc YPA/71QS151fOTO0t1q1+8m5SwB+ha/W+4ebGn0HQiQssciW/alZrJK4FwmMbsjLq3X/ WrPRiiHZPnEiOXo8mlGMvJ8aV/Vk3yTa2zMnFYOLUM6dJcreR4LQydEN5yW04pcWvtgY 92VrqSrn28u5M/RduCHh1TiVih/UlwsH47qWxf6k96u5PYP2Rg0MHu26GElrKMe+Zzvg aK4aXriEhjKQyBg/30bvBeZjZn0NkyTgvSb67003MJJlhXYYNISnBAoPnTfFizA2FGxf 0XBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b="V63GSi/z"; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-45309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jl12-20020ad45e8c000000b0067f234b2c59si10977080qvb.422.2024.01.30.13.03.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 13:03:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b="V63GSi/z"; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-45309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4735E1C23980 for ; Tue, 30 Jan 2024 21:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A15E71B3A; Tue, 30 Jan 2024 21:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="V63GSi/z" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 9E828762C9; Tue, 30 Jan 2024 21:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706648625; cv=none; b=YcrY8ACCRtLbKGKe9wJfO7ThRftg7ZvNHixJHV6Rhizh3O+ttq+afGF0ZH2kvwI9Xtq+12JcRUZe9TvY03AMHQMPpjHmWyp9gpi86mXDdqPhJfP3XetUJLj3GS6qBM+XCNVhsv5TWNecbCd7Bu+3QlVik62m23MpZsgdlri6BKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706648625; c=relaxed/simple; bh=JRAZHf0aez7fHgKMmEwrAb4y3zuYwdw10+sZLpzx0eo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Cbh/ILFPPxsDlrNcaThGgVHLKj2SHEip0A7PyTM0CLgyYiXl2ImYMX/XeUV9m14O3Oh7/LHH0HII1WE8DOIkv8e63RLUfNw50tQZDe6j1/Mx90VcBnqXeVqIVRY7iIpd8+xIofaDX1a1Ni39A0iysFh8J+uXber5OsRJ0fafPbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=V63GSi/z; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net CFFF447AAB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1706648623; bh=jlbymONYyYcCqv/YNvmte1jsEk92RWydj8O4kkJ1L60=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V63GSi/zUCbaaY4V3APaNDSDy1eCx8IOIvTE2hpCtyXMgDBu65pJqO8ecxQHXLjxi orQbignj4mCITcaLAktMvfMp058YbLAkbUOPPpitsBoLQOGNt02oNV4KEuz74chbvz vdl0F41LdA0izvLAptSOEBmk9y34NX1X7rP1MuifCVqg7K+4wlM+4cnFMqn7EJAgsf UKOOFwBBHosqkOr0oSEUEuFC8VEB0op+SdxtE9nM0ArdYOB7gCwi1yPrKJySfzD1kq T+iMR7o+or38/FMcOSIlQL+sxQy4FG27ap1w3ILVrvr+F6hKvQEVfsY31vVsG3M3mZ Yf2RNRO5NRwqA== Received: from localhost (unknown [IPv6:2601:280:5e00:7e19::646]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id CFFF447AAB; Tue, 30 Jan 2024 21:03:42 +0000 (UTC) From: Jonathan Corbet To: Abhishek Pandit-Subedi , gregkh@linuxfoundation.org Cc: Abhishek Pandit-Subedi , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, workflows@vger.kernel.org Subject: Re: [PATCH] coding-style: Add guidance to prefer dev_dbg In-Reply-To: <20240125165311.1.I8d9c88e747e233917e527c7dad1feb8a18f070e2@changeid> References: <20240125165311.1.I8d9c88e747e233917e527c7dad1feb8a18f070e2@changeid> Date: Tue, 30 Jan 2024 14:03:42 -0700 Message-ID: <87fryea5zl.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Abhishek Pandit-Subedi writes: > During review, it was suggested that drivers only emit messages when > something is wrong or it is a debug message. Document this as a formal > recommendation. > > https://lore.kernel.org/linux-usb/2024012525-alienate-frown-916b@gregkh/ > > Signed-off-by: Abhishek Pandit-Subedi > --- > I'm sending up the change to documentation while this is still fresh. > Will send an update to checkpatch.pl afterwards. > > Documentation/process/coding-style.rst | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst > index c48382c6b477..f8ec23fa89bc 100644 > --- a/Documentation/process/coding-style.rst > +++ b/Documentation/process/coding-style.rst > @@ -899,7 +899,8 @@ which you should use to make sure messages are matched to the right device > and driver, and are tagged with the right level: dev_err(), dev_warn(), > dev_info(), and so forth. For messages that aren't associated with a > particular device, defines pr_notice(), pr_info(), > -pr_warn(), pr_err(), etc. > +pr_warn(), pr_err(), etc. When drivers are working properly they are quiet, > +so prefer to use dev_dbg/pr_debug unless something is wrong. > Applied, thanks. jon