Skip to contentSkip to conversation

lib/ubsan: add missing line feed of alignment-assumption.

PATCH New John Sanpe 1 participant 1 message Aug 10, 2022

Subsystems (3)
lore
Share & tools
lore

John Sanpe

author
#0 lore raw

PATCH 1/1 lib/ubsan: add missing line feed of alignment-assumption.

Added three missing '\n' to pr_err format.

---
 lib/ubsan.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
lib/ubsan.c +3 -3
index 36bd75e33426..705250ba88bf 100644
@@ -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));
 
Signature · 1 line
2.36.1