Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2736001pxx; Sun, 1 Nov 2020 08:10:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZb3K4AHrXVsO1TuBE9eEfKTfdr13UiC79XJRgy9qd5z/G1lx/mFh4OwjsOi/jJgGXy7wt X-Received: by 2002:a17:906:1317:: with SMTP id w23mr5040515ejb.120.1604247020632; Sun, 01 Nov 2020 08:10:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604247020; cv=none; d=google.com; s=arc-20160816; b=hbyRbZRMcVyya57okuwD/GMPMycmbW/o5co+MhLZB9vmXVuDIUe4jg2huLq6xjzFJf S/ZlznFokoPvLt0sA1VCnifqWpI2UncwQ5g487o+II9eS+f/d1Y44RcmnpfxOd6d4ItB kVEWcKdNap6aEW617OMpSq2nyXw528/kr8DRgTmtkNjoQwPzaJPCCVZeXXo57J+cPm4G UQ+70W+3z77DhanjI43Qqhh+IZ1IQJoz40VhNnEVkSxxe/29EI/Ma7MYmGQxGVARoJYB WaMMP2W+0l+C8/MhDM1qqW1okJAfI7C4Qjoz6Ktrpoq9iqLrShwR7AaUjMVE45PT05cg qJgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4ujqaNLZTDijEUF2WH6i+J3ZjLlaqzw6Z31jdKSaeZk=; b=z8R69WHw8uT9SvXVsv6BTZyy+2gSv6vH8fzEI26MAvppIJOj7g56fDECljJZZD00mo Sl9GvDH3euL8n8oFYFpidaQqNvep4S0Hz2koDZ8HVi6vc3sByr1vDmDixLhHb7pygzoP ZDfTTn6Z1ZEnC/KXcfPqkCbq+/giwKtzl9L6xxCKT7KZgByO26jtFpfFHaFkcUJSprtn 4h1CTZz1tNVsThXWxNuxE0XMmZgJrw2nMKCQpZXHSiyhuWrPyxlnmhToLwxOuz1ZFOeT abEUt4kazOUhUtm5hO9P9FbhwrctE4Onbd/1HFQK+t0mfzB04bkxS5ezA0iFikoyUg1A NMxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WgDEvNCc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si8465685ejk.692.2020.11.01.08.09.57; Sun, 01 Nov 2020 08:10:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WgDEvNCc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbgKAQIk (ORCPT + 99 others); Sun, 1 Nov 2020 11:08:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbgKAQIk (ORCPT ); Sun, 1 Nov 2020 11:08:40 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2292CC0617A6; Sun, 1 Nov 2020 08:08:40 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id f21so5556349plr.5; Sun, 01 Nov 2020 08:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4ujqaNLZTDijEUF2WH6i+J3ZjLlaqzw6Z31jdKSaeZk=; b=WgDEvNCc6v7J3BuCABRlYis995Jsp1Wha9cp/pKVJQgCH5REDq1P+J61T73puqB4Yb tUTYgtpxT8KiAmzlTpxkgnDLSBT1j3C+nwk3UTIYMvud7MWvHhnl6PLeb3jobllhhlx1 LtfjlBzM7kez9GfoR+bmQjfAOOFIZzcQ6fzfoAk0IqTJOnI8NlS5OypxBOUCjX4jZt1D er6SAT1ZWjlsNC0ENxQV/Mcbmy8plKp0LnAeJj1/pKErK+KWiR65zUdW7eiKOSPhUeFB TwKrK9SYUuOWRPMIMhU9QrMOe9RFTukJUbXjSWXacTZM2WMSnW3c4gwtvyNrIWwuDBkT DZ0A== 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; bh=4ujqaNLZTDijEUF2WH6i+J3ZjLlaqzw6Z31jdKSaeZk=; b=egvwx3Jmn11Px3biuNPVUuddXgBWOTPZ8PWUXU4/SnyBQfY0bryZ6ADqPTj/HjnKCA MMqZxu9h7HoMF7Zws7L6gHkgWCq1GAl21jCHt08P14DpltnuC2fzqlDQEJQRqcdKpDrh Qr6x2dRl2L39Kq2N3rsl5hRqX3qTK2bWQF0yh5c4nOaz4VQW8YvYFLsPXYCUSUQhCxOy Hdf3DiR1HUjANNXDapL6nB1fcZ3bdHMAoIwb39hzgrWdzGuqlJm3H1JEAHS6f4ekevEG 4KawR52s1+Fw968L0nm/Z0t+Mlb2FtaQ4muIrCeX5rzbggAHJx/k6N9nbyRTZt96kdXM g7vQ== X-Gm-Message-State: AOAM532KbIN0FNI1FBhrOqDCT8KXSSLT7etmTFGI8D+jCt807NWMnvak sB9h72d4j1tloqfMZwcuIw== X-Received: by 2002:a17:90a:5204:: with SMTP id v4mr12240028pjh.188.1604246919513; Sun, 01 Nov 2020 08:08:39 -0800 (PST) Received: from PWN (59-125-13-244.HINET-IP.hinet.net. [59.125.13.244]) by smtp.gmail.com with ESMTPSA id t15sm11459126pfq.201.2020.11.01.08.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 08:08:38 -0800 (PST) Date: Sun, 1 Nov 2020 11:08:30 -0500 From: Peilin Ye To: Greg Kroah-Hartman Cc: Daniel Vetter , Sam Ravnborg , Thomas Zimmermann , Bartlomiej Zolnierkiewicz , Jiri Slaby , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fbcon: Replace printk() with pr_*() Message-ID: <20201101160830.GA1526929@PWN> References: <20201101094718.GD1166694@ravnborg.org> <20201101144904.1522611-1-yepeilin.cs@gmail.com> <20201101154113.GA41883@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201101154113.GA41883@kroah.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 01, 2020 at 04:41:13PM +0100, Greg Kroah-Hartman wrote: > On Sun, Nov 01, 2020 at 09:49:04AM -0500, Peilin Ye wrote: > > Replace printk() with pr_err(), pr_warn() and pr_info(). Do not split long > > strings, for easier grepping. Use `__func__` whenever applicable. > > > > fbcon_prepare_logo() has more than one callers, use "fbcon_prepare_logo:" > > instead of "fbcon_init:", for less confusion. > > > > Suggested-by: Sam Ravnborg > > Signed-off-by: Peilin Ye > > --- > > drivers/video/fbdev/core/fbcon.c | 42 +++++++++++++------------------- > > 1 file changed, 17 insertions(+), 25 deletions(-) > > > > diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c > > index cef437817b0d..a3e87ab0e523 100644 > > --- a/drivers/video/fbdev/core/fbcon.c > > +++ b/drivers/video/fbdev/core/fbcon.c > > @@ -659,8 +659,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info, > > > > if (logo_lines > vc->vc_bottom) { > > logo_shown = FBCON_LOGO_CANSHOW; > > - printk(KERN_INFO > > - "fbcon_init: disable boot-logo (boot-logo bigger than screen).\n"); > > + pr_info("%s: disable boot-logo (boot-logo bigger than screen).\n", __func__); > > Shouldn't this be: > dev_info(info->dev, "..."); > instead? > > It's a driver, and you have access to the struct device that is being > worked on, so always try to use the dev_* versions of these calls > instead when ever possible. Ah, I see. I'll fix them in v2, thank you! Peilin