From: Richard Weinberger Date: Sun, 25 Dec 2016 22:11:05 +0000 (+0100) Subject: um: Fix _print_addr() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ecb6c7435f25d6a11fa9d14f407d00286f9642b9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git um: Fix _print_addr() Recent changes to printk() broke UML's stack trace output. Kill the root of the problem by using a single printk() statement. Signed-off-by: Richard Weinberger --- diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index a76295f7ede9..6b995e870d55 100644 --- a/arch/um/kernel/sysrq.c +++ b/arch/um/kernel/sysrq.c @@ -20,10 +20,8 @@ static void _print_addr(void *data, unsigned long address, int reliable) { - pr_info(" [<%08lx>]", address); - pr_cont(" %s", reliable ? "" : "? "); - print_symbol("%s", address); - pr_cont("\n"); + pr_info(" [<%08lx>] %s%pF\n", address, reliable ? "" : "? ", + (void *)address); } static const struct stacktrace_ops stackops = {