[PATCH] spidev: Use dev_dbg() instead of pr_debug()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dev_dbg() is more appropriate for printing debug messages inside
drivers, so switch to dev_dbg().

Signed-off-by: Fabio Estevam <festevam@xxxxxxxxx>
---
 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;
 	}
 
-- 
2.17.1




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux