3 @@ -669,8 +669,10 @@ char *symbol_string(char *buf, char *end
4 struct printf_spec spec, const char *fmt)
7 -#ifdef CONFIG_KALLSYMS
8 char sym[KSYM_SYMBOL_LEN];
9 +#ifndef CONFIG_KALLSYMS
15 @@ -684,11 +686,15 @@ char *symbol_string(char *buf, char *end
16 sprint_symbol(sym, value);
18 sprint_symbol_no_offset(sym, value);
20 - return string(buf, end, sym, spec);
22 - return special_hex_number(buf, end, value, sizeof(void *));
23 + len = snprintf(sym, sizeof(sym), "0x%lx", value);
25 + mod = __module_address(value);
27 + snprintf(sym + len, sizeof(sym) - len, " [%s@%p+0x%x]",
28 + mod->name, mod->module_core, mod->core_size);
30 + return string(buf, end, sym, spec);
33 static noinline_for_stack