diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2018-02-25 13:31:30 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-06 16:48:43 +0100 |
commit | 6795bf6264829b6678f646164d5ab5e335a99fb1 (patch) | |
tree | 0b5f7f1a73831d98c895290c0278936b1d9c0e51 /drivers/media/pci/ngene/ngene-dvb.c | |
parent | media: ngene: add two additional PCI IDs (diff) | |
download | linux-6795bf6264829b6678f646164d5ab5e335a99fb1.tar.xz linux-6795bf6264829b6678f646164d5ab5e335a99fb1.zip |
media: ngene: convert kernellog printing from printk() to dev_*() macros
Convert all printk() and pr_*() kernel log printing to rather use the
dev_*() macros. Not only is it discouraged to use printk() (checkpatch
even complains about that), but also this helps identifying the exact PCI
device for any printed event, and it makes almost all printing shorter
in terms of code style since there's no need to use KERN_* DEVICE_NAME
any more (dev_*() will take care of this).
Since the dprintk macro define isn't used anymore, remove it.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ngene/ngene-dvb.c')
-rw-r--r-- | drivers/media/pci/ngene/ngene-dvb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/pci/ngene/ngene-dvb.c b/drivers/media/pci/ngene/ngene-dvb.c index 03fc218a45e9..f71fd41c762c 100644 --- a/drivers/media/pci/ngene/ngene-dvb.c +++ b/drivers/media/pci/ngene/ngene-dvb.c @@ -152,7 +152,9 @@ void *tsin_exchange(void *priv, void *buf, u32 len, u32 clock, u32 flags) stripped++; if (ok % 100 == 0 && overflow) - printk(KERN_WARNING "%s: ok %u overflow %u dropped %u\n", __func__, ok, overflow, stripped); + dev_warn(&dev->pci_dev->dev, + "%s: ok %u overflow %u dropped %u\n", + __func__, ok, overflow, stripped); #endif buf += 188; len -= 188; |