linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lib/ubsan: add missing line feed of alignment-assumption.
@ 2022-08-10 16:23 John Sanpe
  0 siblings, 0 replies; only message in thread
From: John Sanpe @ 2022-08-10 16:23 UTC (permalink / raw)
  To: philipp.reisner, lars.ellenberg, christoph.boehmwalder
  Cc: drbd-dev, linux-kernel, John Sanpe

Added three missing '\n' to pr_err format.

Signed-off-by: John Sanpe <sanpeqf@gmail.com>
---
 lib/ubsan.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/ubsan.c b/lib/ubsan.c
index 36bd75e33426..705250ba88bf 100644
--- a/lib/ubsan.c
+++ b/lib/ubsan.c
@@ -371,14 +371,14 @@ void __ubsan_handle_alignment_assumption(void *_data, unsigned long ptr,
 	ubsan_prologue(&data->location, "alignment-assumption");
 
 	if (offset)
-		pr_err("assumption of %lu byte alignment (with offset of %lu byte) for pointer of type %s failed",
+		pr_err("assumption of %lu byte alignment (with offset of %lu byte) for pointer of type %s failed\n",
 		       align, offset, data->type->type_name);
 	else
-		pr_err("assumption of %lu byte alignment for pointer of type %s failed",
+		pr_err("assumption of %lu byte alignment for pointer of type %s failed\n",
 		       align, data->type->type_name);
 
 	real_ptr = ptr - offset;
-	pr_err("%saddress is %lu aligned, misalignment offset is %lu bytes",
+	pr_err("%saddress is %lu aligned, misalignment offset is %lu bytes\n",
 	       offset ? "offset " : "", BIT(real_ptr ? __ffs(real_ptr) : 0),
 	       real_ptr & (align - 1));
 
-- 
2.36.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-10 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 16:23 [PATCH] lib/ubsan: add missing line feed of alignment-assumption John Sanpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).