ARC: ioremap: use more commonly used PAGE_KERNEL based uncached flag
[linux-2.6-microblaze.git] / lib / vsprintf.c
index 2926cc2..26c8394 100644 (file)
@@ -993,8 +993,12 @@ char *symbol_string(char *buf, char *end, void *ptr,
        value = (unsigned long)ptr;
 
 #ifdef CONFIG_KALLSYMS
-       if (*fmt == 'B')
+       if (*fmt == 'B' && fmt[1] == 'b')
+               sprint_backtrace_build_id(sym, value);
+       else if (*fmt == 'B')
                sprint_backtrace(sym, value);
+       else if (*fmt == 'S' && (fmt[1] == 'b' || (fmt[1] == 'R' && fmt[2] == 'b')))
+               sprint_symbol_build_id(sym, value);
        else if (*fmt != 's')
                sprint_symbol(sym, value);
        else
@@ -2263,9 +2267,11 @@ early_param("no_hash_pointers", no_hash_pointers_enable);
  * - 'S' For symbolic direct pointers (or function descriptors) with offset
  * - 's' For symbolic direct pointers (or function descriptors) without offset
  * - '[Ss]R' as above with __builtin_extract_return_addr() translation
+ * - 'S[R]b' as above with module build ID (for use in backtraces)
  * - '[Ff]' %pf and %pF were obsoleted and later removed in favor of
  *         %ps and %pS. Be careful when re-using these specifiers.
  * - 'B' For backtraced symbolic direct pointers with offset
+ * - 'Bb' as above with module build ID (for use in backtraces)
  * - 'R' For decoded struct resource, e.g., [mem 0x0-0x1f 64bit pref]
  * - 'r' For raw struct resource, e.g., [mem 0x0-0x1f flags 0x201]
  * - 'b[l]' For a bitmap, the number of bits is determined by the field
@@ -3417,7 +3423,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
 
        while (*fmt) {
                /* skip any white space in format */
-               /* white space in format matchs any amount of
+               /* white space in format matches any amount of
                 * white space, including none, in the input.
                 */
                if (isspace(*fmt)) {