mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline
@ 2026-05-20 19:08 Stepan Ionichev
  2026-05-20 20:13 ` Maxwell Doose
  2026-06-02 22:17 ` Andy Shevchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Stepan Ionichev @ 2026-05-20 19:08 UTC (permalink / raw)
  To: jic23
  Cc: andrea.merello, dlechner, nuno.sa, andy, hcazarim, linux-iio,
	linux-kernel, sozdayvek

Two dev_err() calls in bno055_ser_write_reg() and bno055_ser_read_reg()
are missing the trailing newline, so the kernel log buffer continues
the next message on the same line.

Add the missing \n.

Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
---
 drivers/iio/imu/bno055/bno055_ser_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/imu/bno055/bno055_ser_core.c b/drivers/iio/imu/bno055/bno055_ser_core.c
index 48669dabb..733f9112d 100644
--- a/drivers/iio/imu/bno055/bno055_ser_core.c
+++ b/drivers/iio/imu/bno055/bno055_ser_core.c
@@ -288,7 +288,7 @@ static int bno055_ser_write_reg(void *context, const void *_data, size_t count)
 	struct bno055_ser_priv *priv = context;
 
 	if (count < 2) {
-		dev_err(&priv->serdev->dev, "Invalid write count %zu", count);
+		dev_err(&priv->serdev->dev, "Invalid write count %zu\n", count);
 		return -EINVAL;
 	}
 
@@ -306,7 +306,7 @@ static int bno055_ser_read_reg(void *context,
 	struct bno055_ser_priv *priv = context;
 
 	if (val_size > 128) {
-		dev_err(&priv->serdev->dev, "Invalid read valsize %zu", val_size);
+		dev_err(&priv->serdev->dev, "Invalid read valsize %zu\n", val_size);
 		return -EINVAL;
 	}
 
-- 
2.43.0


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

* Re: [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline
  2026-05-20 19:08 [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline Stepan Ionichev
@ 2026-05-20 20:13 ` Maxwell Doose
  2026-05-22 14:59   ` Jonathan Cameron
  2026-06-02 22:17 ` Andy Shevchenko
  1 sibling, 1 reply; 5+ messages in thread
From: Maxwell Doose @ 2026-05-20 20:13 UTC (permalink / raw)
  To: Stepan Ionichev
  Cc: jic23, andrea.merello, dlechner, nuno.sa, andy, hcazarim,
	linux-iio, linux-kernel

On Wed, May 20, 2026 at 2:27 PM Stepan Ionichev <sozdayvek@gmail.com> wrote:
>
> Two dev_err() calls in bno055_ser_write_reg() and bno055_ser_read_reg()
> are missing the trailing newline, so the kernel log buffer continues
> the next message on the same line.
>
> Add the missing \n.
>
> Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
> ---
>  drivers/iio/imu/bno055/bno055_ser_core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/imu/bno055/bno055_ser_core.c b/drivers/iio/imu/bno055/bno055_ser_core.c
> index 48669dabb..733f9112d 100644
> --- a/drivers/iio/imu/bno055/bno055_ser_core.c
> +++ b/drivers/iio/imu/bno055/bno055_ser_core.c
> @@ -288,7 +288,7 @@ static int bno055_ser_write_reg(void *context, const void *_data, size_t count)
>         struct bno055_ser_priv *priv = context;
>
>         if (count < 2) {
> -               dev_err(&priv->serdev->dev, "Invalid write count %zu", count);
> +               dev_err(&priv->serdev->dev, "Invalid write count %zu\n", count);
>                 return -EINVAL;
>         }
>
> @@ -306,7 +306,7 @@ static int bno055_ser_read_reg(void *context,
>         struct bno055_ser_priv *priv = context;
>
>         if (val_size > 128) {
> -               dev_err(&priv->serdev->dev, "Invalid read valsize %zu", val_size);
> +               dev_err(&priv->serdev->dev, "Invalid read valsize %zu\n", val_size);
>                 return -EINVAL;
>         }
>

Sashiko seems fine with it. Also did a quick visual check and looks
fine (not compiled, but I wouldn't count this as a functional change).

Reviewed-by: Maxwell Doose <m32285159@gmail.com>

best regards,
max


> --
> 2.43.0
>
>

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

* Re: [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline
  2026-05-20 20:13 ` Maxwell Doose
@ 2026-05-22 14:59   ` Jonathan Cameron
  2026-06-02 22:18     ` Andy Shevchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2026-05-22 14:59 UTC (permalink / raw)
  To: Maxwell Doose
  Cc: Stepan Ionichev, andrea.merello, dlechner, nuno.sa, andy,
	hcazarim, linux-iio, linux-kernel

On Wed, 20 May 2026 15:13:41 -0500
Maxwell Doose <m32285159@gmail.com> wrote:

> On Wed, May 20, 2026 at 2:27 PM Stepan Ionichev <sozdayvek@gmail.com> wrote:
> >
> > Two dev_err() calls in bno055_ser_write_reg() and bno055_ser_read_reg()
> > are missing the trailing newline, so the kernel log buffer continues
> > the next message on the same line.
> >
> > Add the missing \n.
> >
> > Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
> > ---
> >  drivers/iio/imu/bno055/bno055_ser_core.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/iio/imu/bno055/bno055_ser_core.c b/drivers/iio/imu/bno055/bno055_ser_core.c
> > index 48669dabb..733f9112d 100644
> > --- a/drivers/iio/imu/bno055/bno055_ser_core.c
> > +++ b/drivers/iio/imu/bno055/bno055_ser_core.c
> > @@ -288,7 +288,7 @@ static int bno055_ser_write_reg(void *context, const void *_data, size_t count)
> >         struct bno055_ser_priv *priv = context;
> >
> >         if (count < 2) {
> > -               dev_err(&priv->serdev->dev, "Invalid write count %zu", count);
> > +               dev_err(&priv->serdev->dev, "Invalid write count %zu\n", count);
> >                 return -EINVAL;
> >         }
> >
> > @@ -306,7 +306,7 @@ static int bno055_ser_read_reg(void *context,
> >         struct bno055_ser_priv *priv = context;
> >
> >         if (val_size > 128) {
> > -               dev_err(&priv->serdev->dev, "Invalid read valsize %zu", val_size);
> > +               dev_err(&priv->serdev->dev, "Invalid read valsize %zu\n", val_size);
> >                 return -EINVAL;
> >         }
> >  
> 
> Sashiko seems fine with it. Also did a quick visual check and looks
> fine (not compiled, but I wouldn't count this as a functional change).
> 
> Reviewed-by: Maxwell Doose <m32285159@gmail.com>
Applied. 
Thanks,

J
> 
> best regards,
> max
> 
> 
> > --
> > 2.43.0
> >
> >  
> 


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

* Re: [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline
  2026-05-20 19:08 [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline Stepan Ionichev
  2026-05-20 20:13 ` Maxwell Doose
@ 2026-06-02 22:17 ` Andy Shevchenko
  1 sibling, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2026-06-02 22:17 UTC (permalink / raw)
  To: Stepan Ionichev
  Cc: jic23, andrea.merello, dlechner, nuno.sa, andy, hcazarim,
	linux-iio, linux-kernel

On Thu, May 21, 2026 at 12:08:50AM +0500, Stepan Ionichev wrote:
> Two dev_err() calls in bno055_ser_write_reg() and bno055_ser_read_reg()
> are missing the trailing newline, so the kernel log buffer continues
> the next message on the same line.
> 
> Add the missing \n.

Surprisingly the kernel log buffer will be fine even without this patch.
So the commit message should say something about consistency of the style
and theoretical problems in the future in case one switches back from dev_err()
to pr_err().

You can dig into sources to understand why your patch changes nothing in the
behaviour.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline
  2026-05-22 14:59   ` Jonathan Cameron
@ 2026-06-02 22:18     ` Andy Shevchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2026-06-02 22:18 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Maxwell Doose, Stepan Ionichev, andrea.merello, dlechner,
	nuno.sa, andy, hcazarim, linux-iio, linux-kernel

On Fri, May 22, 2026 at 03:59:48PM +0100, Jonathan Cameron wrote:
> On Wed, 20 May 2026 15:13:41 -0500
> Maxwell Doose <m32285159@gmail.com> wrote:

...

> Applied. 

Hmm... It's probably too late to tweak the commit message, okay, not a big deal
here.

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2026-06-02 22:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-20 19:08 [PATCH] iio: imu: bno055: terminate dev_err() strings with a newline Stepan Ionichev
2026-05-20 20:13 ` Maxwell Doose
2026-05-22 14:59   ` Jonathan Cameron
2026-06-02 22:18     ` Andy Shevchenko
2026-06-02 22:17 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®