Received: by 10.223.185.116 with SMTP id b49csp2006126wrg; Thu, 22 Feb 2018 06:47:34 -0800 (PST) X-Google-Smtp-Source: AH8x224IsqP6ZGclbyZZJWZidVvCNL1Jd+MDl5ZRWnn80UfP3STC+D0KBNguINv/0NSab0Rl4jgt X-Received: by 10.98.80.89 with SMTP id e86mr7095130pfb.46.1519310854265; Thu, 22 Feb 2018 06:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519310854; cv=none; d=google.com; s=arc-20160816; b=CM/Cxf9j3+UuudAS0LkMYNJRdqpnWe5iGFvTwmCWeoH77xvd8kX09ji3Lo2G/2DBD6 T+FOV+Dg1p2P1ncR1nXgJcK3biHbAgx9v1M6yMF/gQ+SsSiNCpz6clOz4c8U2LmmCNQP q5uZBRo/uVhc/0U/fL7JSz2ZAgH/LQtAdRGlnYdh4sIsVA+hBsIGPb5/gcWIGewsuthR wbEHsthM1zz/XLmcVPEEZufuDvL1YLOEr9nBo1uakgYKj0AoVjaycRPIudR3MAxMpiY0 wGAIHtwYXYUU3mYqWiI9uL4wBEXOkVEu5dLp1vte+um53E61GNW0j8EyDa0ePp4LFWqW iJig== 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:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=1glkP170wbFmWUaThfP+JyIssl2xfJx+z7YpVx/f61k=; b=f1+F9Ez0knrOQFveEdHfFHKuAmfn6Lb4U1GulT4s4nAbCeTI1pSxwSQevzwg8Kctvh qVYl75tZ0P90XLjepGKG4p1NtdJs3FI+SyClyMJNRAXj/XFcODIGO4O7xN660FGHzDVp CO74Li4Eji2bYzzZZ7mIOjbUz9JxfiUHRq7oHQDr2tp0TnobzhgNn01/PJM8Wt8ke5IN UANFlvLQTqKC2ymnfzrxsCF3gMGTmqfUAEvuHwr/+F0tKOIsAlMzsF8WkqhJxaRJ7CMR 4KuNaFml3ckJEK7hfIpWhOaGf/HzXQF1QSfL9Y/Q3fD8PhXTkCd4ADdU37RnTmSR6quZ yQWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hRu0AVgt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si108575pgf.397.2018.02.22.06.47.07; Thu, 22 Feb 2018 06:47:34 -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=@gmail.com header.s=20161025 header.b=hRu0AVgt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932307AbeBVOqG (ORCPT + 99 others); Thu, 22 Feb 2018 09:46:06 -0500 Received: from mail-pg0-f51.google.com ([74.125.83.51]:33049 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753689AbeBVOqF (ORCPT ); Thu, 22 Feb 2018 09:46:05 -0500 Received: by mail-pg0-f51.google.com with SMTP id g12so2079062pgs.0 for ; Thu, 22 Feb 2018 06:46:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=1glkP170wbFmWUaThfP+JyIssl2xfJx+z7YpVx/f61k=; b=hRu0AVgtE/SFxLhS0iolihFhGgMX8XUqoAm30O9FV/l5kMZRAxtFFFSJgVU2ReC5Po dxyTZPCpFnauV1d+kF8hzPci5FVwea8DZ59zCrTslwNtHsheX8etAtH0G4l8YAKYu0w/ kYBzMrWZ8ZxTP5XpvVqk28h4oLrU4PIkr5GOaNoqVU+TT2Iumay6lZ8yfic4Op8B8tkl RS+49lBOpwOe6YQtAgGLIAgD3ZbJ0mBiXYOPYO6Yj9maE8vLHyyKRhgWenBRX2p+X4y2 PqMO10lrquFN9nAB5RMlp442qDZr6URDzrf+BYo6hX5Bil5Rq3HuCrkzhfGcMQoN1+zp xCZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=1glkP170wbFmWUaThfP+JyIssl2xfJx+z7YpVx/f61k=; b=fqpBLd5bl7OsDWhrvhAWlcTczG3u5SIGvSZU99edS0aJnBkXrYto27eFDQXnydumck FTfDpDeROMMd4iQoJbqXbTlZ9Yu1zcy1TPuuspA54T87v0fHwHmJvjuMr1YiwNgVAdFC Mh2WuAppaf/VmwdcsPpLZBJHLZCDUqqj30qseqQW3ujGRAhJFKV6SgXASgakyyNnLibc /pfug/9x24rfT435fermd9hFYEfM73aN65qHM/wKsudt8xqvzJvf4sF9oAnlmmf4SkvA EWCOKZThpIZCHjswaaiML+Q6jz1yheQNK63MBxvFsy4YBYENJIMoYHq6VYcKdGHnKdrz fqDw== X-Gm-Message-State: APf1xPAQvcAq/za2nizV8foD7lAPYJGz/yj9gocPn8H2KYIrkXX9Xriq XBscoKFFzxdn4h6vM76IQ0A= X-Received: by 10.101.86.73 with SMTP id m9mr5955532pgs.70.1519310764910; Thu, 22 Feb 2018 06:46:04 -0800 (PST) Received: from [10.0.2.15] ([103.212.140.140]) by smtp.googlemail.com with ESMTPSA id l10sm509014pfc.133.2018.02.22.06.46.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 06:46:04 -0800 (PST) Message-ID: <1519310758.2359.3.camel@gmail.com> Subject: Re: [PATCH NAND v3] mtd: nand: Replace printk() with appropriate pr_*() macro From: Shreeya Patel To: Richard Weinberger Cc: 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 Date: Thu, 22 Feb 2018 20:15:58 +0530 In-Reply-To: <2093598.TLbMltDcSo@blindfold> References: <1519305014-2547-1-git-send-email-shreeya.patel23498@gmail.com> <2093598.TLbMltDcSo@blindfold> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 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, 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. > :-) > > > > Thanks, > //richard