diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-10-03 09:31:25 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-10-10 16:18:26 +1100 |
commit | 842af9537556af0291eb4d9198e097663902cae1 (patch) | |
tree | 60efacb716e0b069d88dd93301dd86cfb40c4c4a | |
parent | c5250c0e62fbcfa0779f4672952ecea16197bcf3 (diff) |
lib-vsprintf-add-%pe-format-specifier-fix
tidy up comment layout, per Joe
Cc: "John W . Linville" <linville@tuxdriver.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | lib/vsprintf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 44dbd90f49e9..d57551c031f4 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -1111,12 +1111,11 @@ char *escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec, int len; if (spec.field_width == 0) - /* nothing to print */ - return buf; + return buf; /* nothing to print */ if (ZERO_OR_NULL_PTR(addr)) - /* NULL pointer */ - return string(buf, end, NULL, spec); + return string(buf, end, NULL, spec); /* NULL pointer */ + do { switch (fmt[count++]) { |