|
@@ -581,7 +581,7 @@ static char *symbol_string(char *buf, char *end, void *ptr,
|
|
|
unsigned long value = (unsigned long) ptr;
|
|
|
#ifdef CONFIG_KALLSYMS
|
|
|
char sym[KSYM_SYMBOL_LEN];
|
|
|
- if (ext != 'f')
|
|
|
+ if (ext != 'f' && ext != 's')
|
|
|
sprint_symbol(sym, value);
|
|
|
else
|
|
|
kallsyms_lookup(value, NULL, NULL, NULL, sym);
|
|
@@ -822,6 +822,7 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|
|
case 'F':
|
|
|
case 'f':
|
|
|
ptr = dereference_function_descriptor(ptr);
|
|
|
+ case 's':
|
|
|
/* Fallthrough */
|
|
|
case 'S':
|
|
|
return symbol_string(buf, end, ptr, spec, *fmt);
|
|
@@ -1063,7 +1064,8 @@ qualifier:
|
|
|
* @args: Arguments for the format string
|
|
|
*
|
|
|
* This function follows C99 vsnprintf, but has some extensions:
|
|
|
- * %pS output the name of a text symbol
|
|
|
+ * %pS output the name of a text symbol with offset
|
|
|
+ * %ps output the name of a text symbol without offset
|
|
|
* %pF output the name of a function pointer with its offset
|
|
|
* %pf output the name of a function pointer without its offset
|
|
|
* %pR output the address range in a struct resource
|