Received: by 10.223.185.116 with SMTP id b49csp2010906wrg; Thu, 22 Feb 2018 06:52:22 -0800 (PST) X-Google-Smtp-Source: AH8x2274afWsiGUCBhfuz45bbO7XebhPFoBlvUt3gHbC7YRD71/w70yxCoswvbhLIP+TwBx0pqrQ X-Received: by 10.101.97.72 with SMTP id o8mr5959544pgv.119.1519311142614; Thu, 22 Feb 2018 06:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519311142; cv=none; d=google.com; s=arc-20160816; b=uQmN4znqZNBa+kwPveZrM/8vq1/ToBCIp/c2avlGs9ccJUN4G7DsiwX9PEHhUJJGlX X5dYk4m1+Ztt8ijNJSzzguci8KuxFi1OQKEJ104vkrSRrsW3GJwgacQHON//M+QDQU0W iWtAU64fbACnFemSSWmDBITvmYWSFk+H/JnUtsofKubs2RHkODj+lEcUvk+UAuikslCo 378qTRd64ErVMVVJv21D/jx3pqYZAm6t8oZGdYYPR1WsqTAV+yPF/OlM9VO4dpdEjWrl 3fwxYpRCL20pRkEapTAz4WpLHW21JnV+S8W7Sh4C/dYQAx5BYb89JXiNJxXNWt8HErCv 6Pyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Jcc2ZDufsleQsdHttQ9ihmr7cVJrvF3VXBEy577RBB8=; b=T+GB2c3X3BE0PO7hycO0ys1ZctA5HB2FhCRGihu4NUMwOW0ESTKKBBZUSLyvBoAL4f 7FzuUex+LSJJsXLf89n8HDb24dEwO7FE8AI06taKshlM4NFHq1cnp5gRjdfAsmC8Jx1T xOB5ajvG32KlPWJdH+zViWjjY/UZdgoGBakP8kglxaEjtQO3xTCF4vwsik7Ybn5NTMTC 8LD+qdkp7QFV0JCAhmcdlWstKjnhtuy7ezMRnKsKGHTGNht+MDagHmTzLSSN07dDvEyH HaQsxuigwYjjMjiVYLJIrfuewMQj7EKaF0D5L2PqClyWLfjkG1A6Tqq0aSfDtVOWfFjm 35XQ== ARC-Authentication-Results: i=1; mx.google.com; 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 l80si149912pfb.178.2018.02.22.06.52.08; Thu, 22 Feb 2018 06:52:22 -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; 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 S932744AbeBVOvS convert rfc822-to-8bit (ORCPT + 99 others); Thu, 22 Feb 2018 09:51:18 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:43544 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753862AbeBVOvR (ORCPT ); Thu, 22 Feb 2018 09:51:17 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id DDA8A2064B; Thu, 22 Feb 2018 15:51:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 807DA20146; Thu, 22 Feb 2018 15:51:05 +0100 (CET) Date: Thu, 22 Feb 2018 15:51:05 +0100 From: Boris Brezillon To: Shreeya Patel Cc: Richard Weinberger , boris.brezillon@free-electrons.com, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, cyrille.pitchen@wedev4u.fr, maximlevitsky@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, ezequiel@vanguardiasur.com.ar, outreachy-kernel@googlegroups.com Subject: Re: [PATCH NAND v3] mtd: nand: Replace printk() with appropriate pr_*() macro Message-ID: <20180222155105.097eb00a@bbrezillon> In-Reply-To: <1519310758.2359.3.camel@gmail.com> References: <1519305014-2547-1-git-send-email-shreeya.patel23498@gmail.com> <2093598.TLbMltDcSo@blindfold> <1519310758.2359.3.camel@gmail.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Feb 2018 20:15:58 +0530 Shreeya Patel wrote: > On Thu, 2018-02-22 at 15:30 +0100, Richard Weinberger wrote: > > Am Donnerstag, 22. Februar 2018, 14:10:14 CET schrieb Shreeya Patel: > > > > > > @@ -438,7 +438,7 @@ static void __init doc2000_count_chips(struct > > > mtd_info > > > *mtd) break; > > >   } > > >   doc->chips_per_floor = i; > > > - printk(KERN_DEBUG "Detected %d chips per floor.\n", i); > > > + pr_debug("Detected %d chips per floor.\n", i); > > > > > > You are aware of the fact that printk(KERN_DEBUG and pr_debug() are > > not  > > equivalent? > > Not a big deal, just want to make sure that you understand what you > > are doing.  > > Actually pr_debug() shouldn't be used here. > > We usually don't prefer pr_debug for drivers, instead we use dev_dbg. > But as Boris told me that it will be better to first having changed all > printks to pr_*() macro and then think about dev_*() macros. pr_xx() vs dev_xx() is yet another story ;-). -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com