Linux-IIO Archive on lore.kernel.org
 help / Atom feed
* [PATCH] iio: chemical: sps30: remove printk format specifier
@ 2019-02-02  9:00 Tomasz Duszynski
  2019-02-02 17:08 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Tomasz Duszynski @ 2019-02-02  9:00 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, Tomasz Duszynski

pr_fmt is used by printk wrappers. There are not any in the driver
code so remove the format specifier.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
---
 drivers/iio/chemical/sps30.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/iio/chemical/sps30.c b/drivers/iio/chemical/sps30.c
index 376fac41ecb5..e03a28a67146 100644
--- a/drivers/iio/chemical/sps30.c
+++ b/drivers/iio/chemical/sps30.c
@@ -7,8 +7,6 @@
  * I2C slave address: 0x69
  */

-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-
 #include <asm/unaligned.h>
 #include <linux/crc8.h>
 #include <linux/delay.h>
--
2.20.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: chemical: sps30: remove printk format specifier
  2019-02-02  9:00 [PATCH] iio: chemical: sps30: remove printk format specifier Tomasz Duszynski
@ 2019-02-02 17:08 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2019-02-02 17:08 UTC (permalink / raw)
  To: Tomasz Duszynski; +Cc: linux-iio, linux-kernel

On Sat,  2 Feb 2019 10:00:03 +0100
Tomasz Duszynski <tduszyns@gmail.com> wrote:

> pr_fmt is used by printk wrappers. There are not any in the driver
> code so remove the format specifier.
> 
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Applied to the togreg branch of iio.git and pushed out
as testing for the autobuilders to mostly ignore it.

Thanks,

Jonathan

> ---
>  drivers/iio/chemical/sps30.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/iio/chemical/sps30.c b/drivers/iio/chemical/sps30.c
> index 376fac41ecb5..e03a28a67146 100644
> --- a/drivers/iio/chemical/sps30.c
> +++ b/drivers/iio/chemical/sps30.c
> @@ -7,8 +7,6 @@
>   * I2C slave address: 0x69
>   */
> 
> -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> -
>  #include <asm/unaligned.h>
>  #include <linux/crc8.h>
>  #include <linux/delay.h>
> --
> 2.20.1
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-02  9:00 [PATCH] iio: chemical: sps30: remove printk format specifier Tomasz Duszynski
2019-02-02 17:08 ` Jonathan Cameron

Linux-IIO Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-iio/0 linux-iio/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-iio linux-iio/ https://lore.kernel.org/linux-iio \
		linux-iio@vger.kernel.org linux-iio@archiver.kernel.org
	public-inbox-index linux-iio


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-iio


AGPL code for this site: git clone https://public-inbox.org/ public-inbox