From: Tetsuo Handa Date: Thu, 14 Nov 2013 22:31:56 +0000 (-0800) Subject: seq_file: introduce seq_setwidth() and seq_pad() X-Git-Tag: v3.13-rc1~84^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=839cc2a94cc3665bafe32203c2f095f4dd470a80;p=pandora-kernel.git seq_file: introduce seq_setwidth() and seq_pad() There are several users who want to know bytes written by seq_*() for alignment purpose. Currently they are using %n format for knowing it because seq_*() returns 0 on success. This patch introduces seq_setwidth() and seq_pad() for allowing them to align without using %n format. Signed-off-by: Tetsuo Handa Signed-off-by: Kees Cook Cc: Joe Perches Cc: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed