lkml.org 
[lkml]   [2014]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] kernel/cpuset.c: kernel-doc fixes
On 2014/5/6 1:46, Fabian Frederick wrote:
> This patch also converts seq_printf to seq_puts
>
> Cc: Li Zefan <lizefan@huawei.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Acked-by: Li Zefan <lizefan@huawei.com>

> ---
> 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");
> }
>



\
 
 \ /
  Last update: 2014-05-06 04:01    [W:0.042 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site