lkml.org 
[lkml]   [2018]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1] driver core: convert printk(KERN_<LEVEL> ...) to pr_<level>
Date
Convert printk:s to pr_* format.

Note, printk(KERN_DEBUG ...) is left untouched due to side effects
of pr_debug().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/base/dd.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index edfc9f0b1180..f0434695961f 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -321,8 +321,8 @@ bool device_is_bound(struct device *dev)
static void driver_bound(struct device *dev)
{
if (device_is_bound(dev)) {
- printk(KERN_WARNING "%s: device %s already bound\n",
- __func__, kobject_name(&dev->kobj));
+ pr_warn("%s: device %s already bound\n", __func__,
+ kobject_name(&dev->kobj));
return;
}

@@ -485,8 +485,8 @@ static int really_probe(struct device *dev, struct device_driver *drv)
goto dma_failed;

if (driver_sysfs_add(dev)) {
- printk(KERN_ERR "%s: driver_sysfs_add(%s) failed\n",
- __func__, dev_name(dev));
+ pr_err("%s: driver_sysfs_add(%s) failed\n", __func__,
+ dev_name(dev));
goto probe_failed;
}

@@ -566,9 +566,8 @@ static int really_probe(struct device *dev, struct device_driver *drv)
break;
default:
/* driver matched but the probe failed */
- printk(KERN_WARNING
- "%s: probe of %s failed with error %d\n",
- drv->name, dev_name(dev), ret);
+ pr_warn("%s: probe of %s failed with error %d\n",
+ drv->name, dev_name(dev), ret);
}
/*
* Ignore errors returned by ->probe so that the next driver can try
--
2.18.0
\
 
 \ /
  Last update: 2018-08-27 17:28    [W:0.029 / U:3.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site