Re: [PATCH 1/2] kernel/cpuset.c: kernel-doc fixes

From: Li Zefan
Date: Mon May 05 2014 - 21:22:15 EST


On 2014/5/6 1:46, Fabian Frederick wrote:
> This patch also converts seq_printf to seq_puts
>
> Cc: Li Zefan <lizefan@xxxxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>

Acked-by: Li Zefan <lizefan@xxxxxxxxxx>

> ---
> kernel/cpuset.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
...
> void cpuset_task_status_allowed(struct seq_file *m, struct task_struct *task)
> {
> - seq_printf(m, "Mems_allowed:\t");
> + seq_puts(m, "Mems_allowed:\t");
> seq_nodemask(m, &task->mems_allowed);
> - seq_printf(m, "\n");
> - seq_printf(m, "Mems_allowed_list:\t");
> + seq_puts(m, "\n");

will seq_putc() produce slightly smaller code?

> + seq_puts(m, "Mems_allowed_list:\t");
> seq_nodemask_list(m, &task->mems_allowed);
> - seq_printf(m, "\n");
> + seq_puts(m, "\n");
> }
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/