hv_balloon: Simplify data output in hv_balloon_debug_show()
Subsystems (2)
PATCH 1/1 hv_balloon: Simplify data output in hv_balloon_debug_show()
From: Markus Elfring <[email protected]>
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 <[email protected]>
--- drivers/hv/hv_balloon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hv/hv_balloon.c +1 -3
@@ -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" ;
Signature · 1 line
2.54.0
Quoted 18 lines · Markus Elfring
From: Markus Elfring <[email protected]>
Date: Fri, 5 Jun 2026 14:44:54 +0200Move the specification for a line break from a
seq_puts()call to aseq_printf()call.The source code was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>--- drivers/hv/hv_balloon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/hv/hv_balloon.c +0
-0
drivers/hv/hv_balloon.c static int hv_balloon_debug_show(struct seq_file *f, void *offset) · line 1868
Quoted 10 lines
drivers/hv/hv_balloon.c +1
-3@@ -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" ;
Reviewed-by Sahil Chandna <[email protected]>