Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2721662pxx; Sun, 1 Nov 2020 07:42:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxvtzlhY4/m7ewwVONFzpjcG+F4v5HitGT2uZvEo9G90hW3c50juIbXMkFixPOqouuSnUD X-Received: by 2002:a50:f98c:: with SMTP id q12mr12042926edn.277.1604245344613; Sun, 01 Nov 2020 07:42:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604245344; cv=none; d=google.com; s=arc-20160816; b=zzjZnwCybK9zl/+MUZVFEf92nfokSknBpjU8scr9Iuv6HQRkKACGHUSew9ENkZksJE xdFC4ObGGkwtr5D8ckquKThyU6hgBzTSMOjPhBi0dHpya4aBe2YJhqbqCGSi/TI6canY 73Jy+ous3fcQt9hJEiAv22JP7ulbZphQgtSLg1WtT77nz6m66ETb2XHQSvJCOe/xH69C aU5cxDuVxyftDnLPOs0ukDmVNGyNEz0jAGNaLh4ccWJbLOGjZxmuPFBIAPFlvMx+FwCs pKbiBd4CDunaQHAldrDywRM5gUyxf6DKyJxN8MjL0MJUma60MuKlQ+5qRI2U36xX547V ehHg== 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=igceRKt3ZQyfu0rjp11FtQgKLEczpKfpgAOkFWAcgig=; b=cOuulDWThZanhXbpYFrnB3PYTfkV1xXzEsA7J6TsaFBJhSLixTkmTZu8Gcr9evNu6j eYipC62eDd6EIRSsKpWTJfkld37B8/G6KhacMVI1iLNe690/Rj0MHgOL2/zliRkKP7eB JCdfy8mgWpjibM9h6QX18LFBmpJzCTAwJHVYjj0cDHYLN4VWaJSphBUzlm4VvCwhBAig oUr9jEvkeGS1gnJ0C7AKUpXYyFs+Zx/EWsR7MLxDHo8z9qMkkVoq9rqwRbtWH+0r9WMW 7ddtzdVn/r8bnC28g9QKAUZF0BBIQlHiEaJBVatHXK+/nd1MA8GMu8Kr7SdZSxqhx9/9 klZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lkww5ZLV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si5387716ejb.482.2020.11.01.07.42.01; Sun, 01 Nov 2020 07:42:24 -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=@kernel.org header.s=default header.b=lkww5ZLV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726848AbgKAPkT (ORCPT + 99 others); Sun, 1 Nov 2020 10:40:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:53838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbgKAPkS (ORCPT ); Sun, 1 Nov 2020 10:40:18 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1CFE20870; Sun, 1 Nov 2020 15:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604245216; bh=cfBWIZ6CSRsNUZTv6d9OMPWdYjslQzWKE4+ZI+yCBMA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lkww5ZLVtaw4/LQXlV8GY7HSiy4WHoOmiaDerVB0QCScFd5yX7m0HJ+h74Wonvjeb gxw7KdZ2sSTaH7QhpPwlY8RWMDN7WHkY0iP/jPme8lWkpE+Ep7M8+JiEH86ntHL8eb iIJ0AyJMZIFxghCxMw4dVMlaK7h7y1g5D8ySQz1o= Date: Sun, 1 Nov 2020 16:41:13 +0100 From: Greg Kroah-Hartman To: Peilin Ye 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: <20201101154113.GA41883@kroah.com> References: <20201101094718.GD1166694@ravnborg.org> <20201101144904.1522611-1-yepeilin.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201101144904.1522611-1-yepeilin.cs@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, greg k-h