From patchwork Tue Jun 4 02:51:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10974145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3DA8D15E6 for ; Tue, 4 Jun 2019 02:51:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20F41286F6 for ; Tue, 4 Jun 2019 02:51:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12AE328726; Tue, 4 Jun 2019 02:51:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6875286F6 for ; Tue, 4 Jun 2019 02:51:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726301AbfFDCvn (ORCPT ); Mon, 3 Jun 2019 22:51:43 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46994 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbfFDCvn (ORCPT ); Mon, 3 Jun 2019 22:51:43 -0400 Received: by mail-qt1-f195.google.com with SMTP id z19so12011224qtz.13 for ; Mon, 03 Jun 2019 19:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OVkhgHGZecqg71Nt6b+nRHlxOoYRQehGuMik5VmzaIY=; b=cia+qHaa0jRKFrd04Ro5RmYrdyXj9iDMUBKWok5RRkSMbaqlvyqNxsJCSK7+yoe1Th K/2sbGU8kZkIWl0Fpih+F56YV9WWKHflULqCbkMUO6HpqLZjuoLmKe6ibATGcmNPgmUQ WcpAI7+riEHDgD0bcdhpbjGZvMqDFuanu175B9XiHhQQGOlK1rUUTXrUuwV/qLY20/uV 15tGa1yIRzhrEXHf01p0zf9hwexmEKQ+P0biP5pdoC1o3sKZZ4rTjvvd42lf8e2uSalo ujJ3Ue8VIsLuLitpw5gvqAon+1u12rTUhmrOwwvwdwFrLmbGnuwcvdflH3z8eOMBcvfA IwFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OVkhgHGZecqg71Nt6b+nRHlxOoYRQehGuMik5VmzaIY=; b=Sp4wifaAPP4A66zrwA4wOTM8kxkaOS6Caw5Ed8DB3FbRFD644PgePide4qd6n1I3qd TsVmag3FTelInQX75L7ZiaOmX0Te+9Xc4lXyPSXCe0udt7g9nZlVf3WnUOwgxBflFSAA OvYoux8zjI//G286bcNaGEcn+uOHoI7qsO1/GJJ9ftpfAKxzaGdTv9Axkq4Vi8Ot5TrQ MfGqsshlgAtzaIuViag8KAHzQDW4CcO3gtSATjQ8yH6OUEfLKtldDzimYjBB9TvFP1zA gThoGu6yhlMRI3JqDhzppmvoF26Jsfuo/SyAoGJ7+1gK2i/rmKOVx3XiqhhoARzbH2dN whuw== X-Gm-Message-State: APjAAAV6TZKqTD3Q1Ekhd8hB7/na7nJj/o7wNion3QUeKz7Yotfj7tzp U9ilaIeKtWO+VOZ9bdg4wAQ= X-Google-Smtp-Source: APXvYqzyrYAM/4UgtrOG2bdMtqkfHOiKG3CIE6H55eHfqerDM6uF1pu/bGx3ECjGsu9NvcF5Uyf5vg== X-Received: by 2002:a05:6214:cf:: with SMTP id f15mr5852383qvs.154.1559616702025; Mon, 03 Jun 2019 19:51:42 -0700 (PDT) Received: from fabio-Latitude-E5450.am.freescale.net ([2804:14c:482:3c8:56cb:1049:60d2:137b]) by smtp.gmail.com with ESMTPSA id k5sm8013942qtj.40.2019.06.03.19.51.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 19:51:41 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, Fabio Estevam Subject: [PATCH] spidev: Use dev_dbg() instead of pr_debug() Date: Mon, 3 Jun 2019 23:51:29 -0300 Message-Id: <20190604025129.20387-1-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP dev_dbg() is more appropriate for printing debug messages inside drivers, so switch to dev_dbg(). Signed-off-by: Fabio Estevam --- drivers/spi/spidev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 255786f2e844..0ea67ef3e65c 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -560,7 +560,8 @@ static int spidev_open(struct inode *inode, struct file *filp) } if (status) { - pr_debug("spidev: nothing for minor %d\n", iminor(inode)); + dev_dbg(&spidev->spi->dev, "spidev: nothing for minor %d\n", + iminor(inode)); goto err_find_dev; }