module: Modify module_flags() to accept show_state argument

No functional change.

With this patch a given module's state information (i.e. 'mod->state')
can be omitted from the specified buffer. Please note that this is in
preparation to include the last unloaded module's taint flag(s),
if available.

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
Aaron Tomlin
2022-07-14 16:39:31 +01:00
committed by Luis Chamberlain
parent 73b4fc92f9
commit 17dd25c29c
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ static int m_show(struct seq_file *m, void *p)
/* Taints info */
if (mod->taints)
seq_printf(m, " %s", module_flags(mod, buf));
seq_printf(m, " %s", module_flags(mod, buf, true));
seq_puts(m, "\n");
return 0;