--- zzzz-none-000/linux-3.10.107/lib/vsprintf.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/lib/vsprintf.c 2021-11-10 11:53:56.000000000 +0000 @@ -28,6 +28,9 @@ #include #include #include +#if defined(CONFIG_AVM_ENHANCED) +#include +#endif/*--- #if defined(CONFIG_AVM_ENHANCED) ---*/ #include /* for PAGE_SIZE */ #include /* for dereference_function_descriptor() */ @@ -550,12 +553,23 @@ if (*fmt == 'B') sprint_backtrace(sym, value); else if (*fmt != 'f' && *fmt != 's') +#if defined(CONFIG_AVM_ENHANCED) + print_memory_classifier(sym, sizeof(sym), value, 1); +#else sprint_symbol(sym, value); +#endif/*--- #if defined(CONFIG_AVM_ENHANCED) ---*/ else sprint_symbol_no_offset(sym, value); return string(buf, end, sym, spec); #else +#if defined(CONFIG_AVM_ENHANCED) + if(!IS_ERR(module_alloc_find_module_name)) { + char sym[KSYM_SYMBOL_LEN]; + module_alloc_find_module_name(sym, sym + sizeof(sym), value); + return string(buf, end, sym, spec); + } +#endif/*--- #if defined(CONFIG_AVM_ENH) ---*/ spec.field_width = 2 * sizeof(void *); spec.flags |= SPECIAL | SMALL | ZEROPAD; spec.base = 16;