Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: John Sanpe <sanpeqf@gmail.com>
To: philipp.reisner@linbit.com, lars.ellenberg@linbit.com,
	christoph.boehmwalder@linbit.com
Cc: John Sanpe <sanpeqf@gmail.com>,
	linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com
Subject: [Drbd-dev] [PATCH] lib/ubsan: add missing line feed of alignment-assumption.
Date: Thu, 11 Aug 2022 00:23:01 +0800	[thread overview]
Message-ID: <20220810162301.201540-1-sanpeqf@gmail.com> (raw)

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


                 reply	other threads:[~2022-08-10 16:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220810162301.201540-1-sanpeqf@gmail.com \
    --to=sanpeqf@gmail.com \
    --cc=christoph.boehmwalder@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    --cc=lars.ellenberg@linbit.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philipp.reisner@linbit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox