Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933839AbdIYHir (ORCPT ); Mon, 25 Sep 2017 03:38:47 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35977 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933769AbdIYHip (ORCPT ); Mon, 25 Sep 2017 03:38:45 -0400 X-Google-Smtp-Source: AOwi7QDi1CngjqALGQGX3JdCn9QEvWVXa9P/ew+piheui4x2HJrTSoqDfFKP1nUq1I7O2qp1xZrnuw== Date: Mon, 25 Sep 2017 09:38:41 +0200 From: Thierry Reding To: Harsha Sharma Cc: dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: Re: [PATCH v2] drm/tegra: Replace dev_* with DRM_DEV_* Message-ID: <20170925073841.GA12494@ulmo.fritz.box> References: <1506271437-23058-1-git-send-email-harshasharmaiitr@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <1506271437-23058-1-git-send-email-harshasharmaiitr@gmail.com> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2488 Lines: 72 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 24, 2017 at 10:13:57PM +0530, Harsha Sharma wrote: > Replace all occurences of dev_info/err/dbg with DRM_DEV_INFO/ > ERROR/DEBUG as we have DRM_DEV_* variants of drm print macros > Done using following coccinelle semantic patch >=20 > @r@ > @@ >=20 > ( > -dev_info > +DRM_DEV_INFO > | > -dev_err > +DRM_DEV_ERROR > | > -dev_dbg > +DRM_DEV_DEBUG > ) >=20 > Signed-off-by: Harsha Sharma > --- > Changes in v2: > -Break line over 80 characters > -Changes in comments not required Please don't do this. Most of the functions that you're trying to replace here are not DRM_DEV_*() for a very specific reason: none of them have anything to do with DRM/KMS in particular. This is important, in my opinion, because these messages are very device-specific and the additional information added by the DRM format string aren't useful in the context. Perhaps the only ones I consider to be good candidates for this conversion are the ones in drivers/gpu/drm/tegra/fb.c because they deal with the DRM fbdev setup and hence are not device specific. And even in those cases I'm not sure we gain very much by this conversion, especially since most of the replacements now end up having to split up argument lists. Sorry if this isn't documented anywhere. I also suspect other driver maintainers will be less picky about this sort of thing, so you might have more luck there. Thierry --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlnIsn4ACgkQ3SOs138+ s6G/ehAArmURYZKqKKYoGJHDf0BQQXrr5S0e9jC23G2G9Ka3H7wy3vP99NzSubLX U0YJXIR0bLK/g/q0GaOCb9KMG3Wdqs3CNbovKPf0s34/lgsSgU7OLhGo78p3mkD1 JTNgTeaffNvXnmO9tbcsKHYK+A6fVa4F4oxZpSO/zmAxtMsPQUIMqFcVON9g4GPl oqvy02477gfCNkdI1ZysxXyI9C8ioKeuGAN8IF0NWroQOkxmu/hQ70DC+lhDNlOU 3Dep2p5tyfVj2MRXgE5gWl4rxtmSlXg+kYZuQpYH58NbYL7V5cVQlQzWmWa9njiM yAdD1V1m1wYA/P5VV8RpVvmMAB5NoPwfXdbgRvRmQdeY/E84Nf33LM83OJo3yFc4 6ef7T5w0s93BxUGg/BPdpuEUgSCZjMhlxFhN2kaSvF9OO6MKpPkrAHRqvj2LuY9x Vi6f/OI8CRRlZ3Gv27FmYb6RKTkjiM+uKswviiw/A35Nw8FdA1X4h7XEiA2/nQSW Zbxo4BRhwGzPenn03yw/NQNVRZm39wYC6o2BBV91cBGcSpprtZk8teF/LM8ilLRt p5+JSkjVey82k7eOrs1f6PROfWXLngsxUa/lyaIDOdSzRJOqr26nDkDfE+sx2vSs kQbtbYy1+GkowenQFOA5ND4eNFCOyUoYDgxapvl4/Rhn+FirNMw= =ci1u -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--