浏览代码

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 <richard@nod.at>
Richard Weinberger 8 年之前
父节点
当前提交
ecb6c7435f
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      arch/um/kernel/sysrq.c

+ 2 - 4
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 = {