From: matthias.bgg@kernel.org
To: gregkh@linuxfoundation.org, rafael@kernel.org
Cc: linux-kernel@vger.kernel.org, gene.chen.richtek@gmail.com,
lee.jones@linaro.org, matthias.bgg@kernel.org,
Matthias Brugger <mbrugger@suse.com>
Subject: [PATCH 2/2] drivers: base: Convert to printk alias functions
Date: Mon, 8 Jun 2020 11:52:17 +0200 [thread overview]
Message-ID: <20200608095217.21162-2-matthias.bgg@kernel.org> (raw)
In-Reply-To: <20200608095217.21162-1-matthias.bgg@kernel.org>
From: Matthias Brugger <mbrugger@suse.com>
The file mixes printk calls together with calls to pr_*().
Covert to printk alias functions to unify the code.
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
---
drivers/base/driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 40fba959c140..aa3b3a226a02 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -164,12 +164,12 @@ int driver_register(struct device_driver *drv)
if ((drv->bus->probe && drv->probe) ||
(drv->bus->remove && drv->remove) ||
(drv->bus->shutdown && drv->shutdown))
- printk(KERN_WARNING "Driver '%s' needs updating - please use "
+ pr_warn("Driver '%s' needs updating - please use "
"bus_type methods\n", drv->name);
other = driver_find(drv->name, drv->bus);
if (other) {
- printk(KERN_ERR "Error: Driver '%s' is already registered, "
+ pr_err("Error: Driver '%s' is already registered, "
"aborting...\n", drv->name);
return -EBUSY;
}
--
2.26.2
next prev parent reply other threads:[~2020-06-08 9:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 9:52 [PATCH 1/2] drivers: base: Warn if driver name is not present matthias.bgg
2020-06-08 9:52 ` matthias.bgg [this message]
2020-06-08 10:57 ` Greg KH
2020-06-08 11:48 ` Matthias Brugger
2020-06-08 12:15 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200608095217.21162-2-matthias.bgg@kernel.org \
--to=matthias.bgg@kernel.org \
--cc=gene.chen.richtek@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mbrugger@suse.com \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.