apparmor: Replace two seq_printf() calls by seq_puts() in aa_label_seq_xprint()
Two 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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
c79f46a282
commit
278de07ef8
|
@ -1749,13 +1749,13 @@ void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
|
||||||
AA_DEBUG("label print error");
|
AA_DEBUG("label print error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
seq_printf(f, "%s", str);
|
seq_puts(f, str);
|
||||||
kfree(str);
|
kfree(str);
|
||||||
} else if (display_mode(ns, label, flags))
|
} else if (display_mode(ns, label, flags))
|
||||||
seq_printf(f, "%s (%s)", label->hname,
|
seq_printf(f, "%s (%s)", label->hname,
|
||||||
label_modename(ns, label, flags));
|
label_modename(ns, label, flags));
|
||||||
else
|
else
|
||||||
seq_printf(f, "%s", label->hname);
|
seq_puts(f, label->hname);
|
||||||
}
|
}
|
||||||
|
|
||||||
void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
|
void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
|
||||||
|
|
Loading…
Reference in New Issue