Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1434123
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 04/15] lirc_dev: replace printk with pr_* or dev_* |
| Date | 2016-06-30 02:30 +0200 |
| Message-ID | <rPy1H-2Az-1@gated-at.bofh.it> (permalink) |
| References | <rPnIZ-4Hd-3@gated-at.bofh.it> <rPnJ5-4Hd-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 2016-06-29 at 22:20 +0900, Andi Shyti wrote:
> This patch mutes also all the checkpatch warnings related to
> printk.
>
> Reword all the printouts so that the string doesn't need to be
> split, which fixes the following checkpatch warning:
Adding
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
before any #include would allow these to be prefixed
automatically and allow the embedded prefixes to be removed.
> diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
[]
> @@ -240,59 +240,51 @@ static int lirc_allocate_driver(struct lirc_driver *d)
> int err;
>
> if (!d) {
> - printk(KERN_ERR "lirc_dev: lirc_register_driver: "
> - "driver pointer must be not NULL!\n");
> + pr_err("lirc_dev: driver pointer must be not NULL!\n");
> err = -EBADRQC;
> goto out;
> }
pr_err("driver pointer must not be NULL!\n");
And typical multiple line statement alignment is to
the open parenthesis.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 04/15] lirc_dev: replace printk with pr_* or dev_* Andi Shyti <andi.shyti@samsung.com> - 2016-06-29 15:30 +0200 Re: [PATCH 04/15] lirc_dev: replace printk with pr_* or dev_* Joe Perches <joe@perches.com> - 2016-06-30 02:30 +0200
csiph-web