summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2026-06-05 15:44:54 +0300
committerWei Liu <wei.liu@kernel.org>2026-06-08 09:13:15 +0300
commit145613eb15eaed537825363a59523a0dcfa2d0f3 (patch)
treee0b7db41fcc95cb891890c683a1b8c55787c005c
parent982cb55bec4a8aa73569dba4739a3de1ee2c25d9 (diff)
downloadlinux-145613eb15eaed537825363a59523a0dcfa2d0f3.tar.xz
hv_balloon: Simplify data output in hv_balloon_debug_show()
Move the specification for a line break from a seq_puts() call to a seq_printf() call. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Sahil Chandna <sahilchandna@linux.microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
-rw-r--r--drivers/hv/hv_balloon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index 9a55f5c43307..42ce27be344d 100644
--- a/drivers/hv/hv_balloon.c
+++ b/drivers/hv/hv_balloon.c
@@ -1862,9 +1862,7 @@ static int hv_balloon_debug_show(struct seq_file *f, void *offset)
if (hot_add_enabled())
seq_puts(f, " hot_add");
- seq_puts(f, "\n");
-
- seq_printf(f, "%-22s: %u", "state", dm->state);
+ seq_printf(f, "\n%-22s: %u", "state", dm->state);
switch (dm->state) {
case DM_INITIALIZING:
sname = "Initializing";