Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp989000ybx; Thu, 7 Nov 2019 05:41:51 -0800 (PST) X-Google-Smtp-Source: APXvYqw102E4GEUKLouHUTq/CQtUxIyHcXVd2FDdqtNkRiqbd2x+8PHmEV0fes3x5jcVsnf4yVPz X-Received: by 2002:a50:f05c:: with SMTP id u28mr3512846edl.265.1573134111693; Thu, 07 Nov 2019 05:41:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573134111; cv=none; d=google.com; s=arc-20160816; b=xGpEptzeElW/7vsWdIOj2nnhmWfu1I0Pl00vFEHd4DgpOJWVsmorn42XxGw0SE3hkB s6Khrguxywqrw918RePjO+AO1KCuJ8e73pK16xYSCdURMJYKsfW4njQaDWjKxrnQ+HMM lHbuKOys85YtLZUfjp/3uB0lcXs+JHRhxQmfU8lekfTUboa+ALh34G1CEcDaS1sDtv9x HpWoVDru5S2k2vwNFWpRzD2hyYt8/Tjhhr3tGiVt9g2U+P6C8Ci5kIOkXrXsVvKWFLei LYsY4oXiXHEIxvQQkpu4QImjTnsJzrtHxvyituAn0gCTtxcxHaSAv5YgiGWC7frmN66+ iDSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UR+FMpDRyPvXwNuet63hIA/KDaiYBztB4W2oxpuqt4A=; b=D7V2k4x6s2OoOpzCiQqBc81A2vqWMEl9nsb70eZhznMpHZ9wuNRVXEblMdPzQJkPE9 EwQwBmWnkmHvHU2E2+Gn31roWnt7rwK8H4Ocx+BqzpD200btOAmMqe1n//k2KKAUQHsP TU/+UHJ3hSAXl0v0EFnYWUGaiUQ+e9V2gI06ySvOBz33r93x9oCV+vIUAdf4sEmz/Tme UFlPXb5dJCw8qWYyFd/8/q7vfY4/MJ59GlbOs7GxDl6WsqQy/wI+ULV2dHSPAgxzLc+j RKyu3+GvhxFtY3q9M+7V5D6l2qSldwZqzIN/0Z+YDUYBkk+Yr4AjBwQqsEFMNuhk72GW I+ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=csf58IPg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si1469649edz.85.2019.11.07.05.41.28; Thu, 07 Nov 2019 05:41:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=csf58IPg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731026AbfKGNiy (ORCPT + 99 others); Thu, 7 Nov 2019 08:38:54 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:35544 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727858AbfKGNix (ORCPT ); Thu, 7 Nov 2019 08:38:53 -0500 Received: by mail-yb1-f194.google.com with SMTP id i12so935182ybg.2 for ; Thu, 07 Nov 2019 05:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UR+FMpDRyPvXwNuet63hIA/KDaiYBztB4W2oxpuqt4A=; b=csf58IPg/w9lQ2Nl9oTvOEkFzDSskXTPBRw8RrWxLtI2rQy0W4i6vmQjsgLc6BoO+F YTwCDTgQVpF7vOqHSlyNAoDkvZPu8DoGhp4BImq5C36qnqFYH+f7ZnATq69eSOifv8Vu FSqy2tMQSkpc+MJ5dsMIbD4sVXsKkMrstvBaLhTvk8DoTkXYAaB+uta+3AVkJanTarNL EIIb/RnSDc0la+ZBS/pl2Qde1zl1wO453vc7F21/7iTG+a8J6RH+7gXYi/0zBvk5chRL se/x7c6J5b1pPsDWS+s/sbSoRs1b+WqYISDDPF9PZqfyCv6ZkcTYwGvP8qxTeqBIOwJ2 PJTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UR+FMpDRyPvXwNuet63hIA/KDaiYBztB4W2oxpuqt4A=; b=lViU49+FPWdEyBLi5UkwyD4PWZp0BT4XcX+6SpTLXyLhmdCk0wiSwwTk29e0BPBmIx pJEBPkniukEWM28Z1EDX0lTriCBZyWtwbrUxfOuXhW+lh+U+DXowqlwjvMLIm2cPZsRY rmC3o2tWYspBgY/XNqpLtkfy6NRJGfJkD6Pxp+ZR8qimAmPRTHCowMBljrwj7yo4cs+S U4HJTysL8cYBI4MYqF1hatEPmATVtz87xQiNr9pENPZAo5OGYUza/qUeKx+8Ww2EScOH XXmYSujUv8J5M9AuFmy2sq+KxKUR2WzI//vx5k16ewNNf1Sf3BrqQW2tqdb8CPhcm1z5 N9mw== X-Gm-Message-State: APjAAAXajbw40CBTsO/j1zE72qX60CnGBpuITwPWVexygMBYDjbVdand kRMgN+o525ofmPsRi2kmoGMzNAZYxYw= X-Received: by 2002:a5b:d07:: with SMTP id y7mr3445302ybp.313.1573133932475; Thu, 07 Nov 2019 05:38:52 -0800 (PST) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id i125sm750756ywa.68.2019.11.07.05.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 05:38:51 -0800 (PST) Date: Thu, 7 Nov 2019 08:38:51 -0500 From: Sean Paul To: Joe Perches Cc: Wambui Karuga , hjc@rock-chips.com, heiko@sntech.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/rockchip: use DRM_DEV_ERROR for log output Message-ID: <20191107133851.GF63329@art_vandelay> References: <20191107092945.15513-1-wambui.karugax@gmail.com> <4c74db2614cefe23f888d0643c2d7c356086745a.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4c74db2614cefe23f888d0643c2d7c356086745a.camel@perches.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 01:54:22AM -0800, Joe Perches wrote: > On Thu, 2019-11-07 at 12:29 +0300, Wambui Karuga wrote: > > Replace the use of the dev_err macro with the DRM_DEV_ERROR > > DRM helper macro. > > The commit message should show the reason _why_ you are doing > this instead of just stating that you are doing this. > > It's not that dev_err is uncommon in drivers/gpu/drm. > It is uncommon (this is the sole instance) in rockchip, however. So it makes sense to convert the dev_* prints in rockchip to DRM_DEV for consistency. Wambui, could you also please convert the dev_warn instance as well? I'll apply this to drm-misc-next and expand on the commit message a bit. Thanks, Sean > $ git grep -w dev_err drivers/gpu/drm | wc -l > 1950 > $ git grep -w DRM_DEV_ERROR drivers/gpu/drm | wc -l > 756 > > > diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c > [] > > @@ -916,7 +916,7 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) > > } > > > > if (!dsi->cdata) { > > - dev_err(dev, "no dsi-config for %s node\n", np->name); > > + DRM_DEV_ERROR(dev, "no dsi-config for %s node\n", np->name); > > return -EINVAL; > > } > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Sean Paul, Software Engineer, Google / Chromium OS