Commit 6ef481d4 authored by Markus Elfring's avatar Markus Elfring Committed by Karol Herbst

drm/nouveau/debugfs: Replace five seq_printf() calls by seq_puts() in nouveau_debugfs_pstate_get()

Five strings which did not contain a data format specification should
be put into a sequence. Thus use the corresponding function “seq_puts”.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarKarol Herbst <kherbst@redhat.com>
Signed-off-by: default avatarKarol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/bdee7e41-094a-91d1-3f6f-56df402d70b7@web.de
parent df8133d0
......@@ -120,16 +120,16 @@ nouveau_debugfs_pstate_get(struct seq_file *m, void *data)
if (state >= 0) {
if (info.ustate_ac == state)
seq_printf(m, " AC");
seq_puts(m, " AC");
if (info.ustate_dc == state)
seq_printf(m, " DC");
seq_puts(m, " DC");
if (info.pstate == state)
seq_printf(m, " *");
seq_puts(m, " *");
} else {
if (info.ustate_ac < -1)
seq_printf(m, " AC");
seq_puts(m, " AC");
if (info.ustate_dc < -1)
seq_printf(m, " DC");
seq_puts(m, " DC");
}
seq_putc(m, '\n');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment