Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1269654ybl; Fri, 23 Aug 2019 16:36:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKw7juoGlp9193UmJAVyr9wDwyvNbQFIavtPHVn2PM2gx+LiuO30bgnRiki0EthnaOEIhw X-Received: by 2002:a17:902:7045:: with SMTP id h5mr7524256plt.85.1566603371328; Fri, 23 Aug 2019 16:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566603371; cv=none; d=google.com; s=arc-20160816; b=tyYruLD5ZAibJ6vveKtGDEnSxBwkkqGfep3gD0AUkKN1vLzGV4uVI4oDvX85TlPIK2 4bdVc1SmAsQ305+udvu1sNigVG081A5diOABFi4OVbGPCalBaUxGOELTPjd1GjK8aFn8 SQyHDFJVLoQeJ+sUeGfpobJCIwWvVpiMmWxsXZ3KRhIzxvZaCgJLEwHFzPw8sQf3giJc 7dq0ASulVrKNrEDgVfWZ/ZRKE0n5y9bnpNDmc9Vgr+SOAjpkTroVuwgV+/4zYrd7n7At dJNxM5U7sEIdNCx+Y5FWYNyTdm4TooCE6Ko6oXGEF/eTD4PNuwmtxEJ4O3SBh4ljukqc ROnA== 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=ECzVjxc4YL9kIpI3v9oIFXqJygfbkonhyHCevBIJwzg=; b=RanEUGwsTnjQ0XtRl6piuEkAnIkqLFiFpYETjcVpUTcfvar472riRlMl8a32XO+t5Q HS4Zdr4TrbIqmWVybLyMZYxLuf7wZt90s5ZJZppGrK1uAR15UUGb7pMY6r96+7XkGdcv ogYT1O6OY7oDayEY1E2fjpp0yBkMHfLFrZkFBYUixvMJynxiz0krcI2/KULOVBNBxoh0 cYkp6IgaelQbusJsHZYj+mK+pKZquo+HKP7HUYP34w7W5008HRnpA8ho98CnqylvnNs6 X6qZCDawcIIw40lp6zqH6BZxLE8kSu9NhabpfjgWyd4paxmgqGk0nWR+nEn3x6qFT7e+ rSxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sguKy5qx; 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 b18si3767491plz.135.2019.08.23.16.35.56; Fri, 23 Aug 2019 16:36:11 -0700 (PDT) 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=@kernel.org header.s=default header.b=sguKy5qx; 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 S1731973AbfHWRn7 (ORCPT + 99 others); Fri, 23 Aug 2019 13:43:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:41588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbfHWRn7 (ORCPT ); Fri, 23 Aug 2019 13:43:59 -0400 Received: from localhost (unknown [104.129.198.240]) (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 01A782082F; Fri, 23 Aug 2019 17:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566582238; bh=5+lhchtJYRPd1IgdCHPyEugqeonz+HlG1kNBjHafB3U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sguKy5qxO5G+XQgTyhqcxRAp7a5BJU7Wx6e07cSjbuBIKQPDE7m9kfXuQTL/cFssZ Up6hbdt2HozekL5jClJAnX6Tgk7L5zDfx4H8EYNfRhuoyxLrGYVmvrBamtb0lSh0Qy kDzHg+U6j0Cw/qGrqzyC1c8X8Pt9zyzjSpO2QuCI= Date: Fri, 23 Aug 2019 10:43:57 -0700 From: Greg Kroah-Hartman To: Adam Zerella Cc: Dominik Brodowski , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] pcmcia/i82092: Refactored dprintk macro for pr_debug(). Message-ID: <20190823174357.GA8052@kroah.com> References: <20190823062951.1168-1-adam.zerella@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190823062951.1168-1-adam.zerella@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 23, 2019 at 04:29:49PM +1000, Adam Zerella wrote: > As pointed out in https://kernelnewbies.org/KernelJanitors/Todo > this patch replaces the outdated macro of DPRINTK for pr_debug() > > To: Dominik Brodowski > To: Thomas Gleixner > To: Greg Kroah-Hartman > To: Adam Zerella > To: linux-kernel@vger.kernel.org > Signed-off-by: Adam Zerella > --- > drivers/pcmcia/i82092.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c > index ec54a2aa5cb8..e1929520c20e 100644 > --- a/drivers/pcmcia/i82092.c > +++ b/drivers/pcmcia/i82092.c > @@ -117,9 +117,9 @@ static int i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *i > > if (card_present(i)) { > sockets[i].card_state = 3; > - dprintk(KERN_DEBUG "i82092aa: slot %i is occupied\n",i); > + pr_debug("i82092aa: slot %i is occupied\n", i); > } else { > - dprintk(KERN_DEBUG "i82092aa: slot %i is vacant\n",i); > + pr_debug("i82092aa: slot %i is vacant\n", i); These really should use dev_dbg() instead, as this is a driver and you have access to a real device here. > } > } > > @@ -128,7 +128,7 @@ static int i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *i > pci_write_config_byte(dev, 0x50, configbyte); /* PCI Interrupt Routing Register */ > > /* Register the interrupt handler */ > - dprintk(KERN_DEBUG "Requesting interrupt %i \n",dev->irq); > + pr_debug("Requesting interrupt %i\n", dev->irq); Same here. thanks, greg k-h