]> git.hungrycats.org Git - linux/commitdiff
drm/amd/display: Simplify data output in ips_status_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 5 Jun 2026 10:40:31 +0000 (12:40 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 20:23:27 +0000 (16:23 -0400)
Move the specification for a line break from a seq_puts() call
to a previous seq_printf() call.

This issue was detected by using the Coccinelle software.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

index 2d455359fdb49d10c9bfdf702f4b7151eb5d586c..133f3af0e4e3165dcf1ee8c333082bef1dffddd0 100644 (file)
@@ -2710,11 +2710,10 @@ static int ips_status_show(struct seq_file *m, void *unused)
                rcg_count = ips_fw->rcg_exit_count;
                ips1_count = ips_fw->ips1_exit_count;
                ips2_count = ips_fw->ips2_exit_count;
-               seq_printf(m, "exit counts: rcg=%u ips1=%u ips2=%u",
+               seq_printf(m, "exit counts: rcg=%u ips1=%u ips2=%u\n",
                           rcg_count,
                           ips1_count,
                           ips2_count);
-               seq_puts(m, "\n");
        }
        return 0;
 }