drivers/hv/hv_balloon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
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
On 05/06/2026 18:20, Markus Elfring wrote:
> 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";
Reviewed-by: Sahil Chandna <sahilchandna@linux.microsoft.com>
© 2016 - 2026 Red Hat, Inc.