Linux-HyperV List
 help / color / mirror / Atom feed
* [PATCH] hv_balloon: Simplify data output in hv_balloon_debug_show()
@ 2026-06-05 12:50 Markus Elfring
  2026-06-05 19:11 ` Sahil Chandna
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2026-06-05 12:50 UTC (permalink / raw)
  To: linux-hyperv, Dexuan Cui, Haiyang Zhang, K. Y. Srinivasan,
	Long Li, Wei Liu
  Cc: LKML

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 5 Jun 2026 14:44:54 +0200

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>
---
 drivers/hv/hv_balloon.c | 4 +---
 1 file changed, 1 insertion(+), 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";
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-05 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05 12:50 [PATCH] hv_balloon: Simplify data output in hv_balloon_debug_show() Markus Elfring
2026-06-05 19:11 ` Sahil Chandna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox