[RFC 1/3] lib/vsprintf.c: pull out padding code from dentry_name()

2015-10-09 Thread Rasmus Villemoes
Pull out the logic in dentry_name() which handles field width space padding, in preparation for reusing it from string(). Rename the widen() helper to move_right(), since it is used for handling the !(flags & LEFT) case. Signed-off-by: Rasmus Villemoes --- lib/vsprintf.c | 46

[RFC 1/3] lib/vsprintf.c: pull out padding code from dentry_name()

2015-10-09 Thread Rasmus Villemoes
Pull out the logic in dentry_name() which handles field width space padding, in preparation for reusing it from string(). Rename the widen() helper to move_right(), since it is used for handling the !(flags & LEFT) case. Signed-off-by: Rasmus Villemoes ---