mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
iio: imu: bno055: terminate dev_err() strings with a newline
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> Reviewed-by: Maxwell Doose <m32285159@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
f9242e31d1
commit
94574dff23
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user