From patchwork Wed Dec 12 18:19:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 1870021 X-Patchwork-Delegate: lethal@linux-sh.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 72C6A3FC81 for ; Wed, 12 Dec 2012 18:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754716Ab2LLSVh (ORCPT ); Wed, 12 Dec 2012 13:21:37 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:55086 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754503Ab2LLSVf (ORCPT ); Wed, 12 Dec 2012 13:21:35 -0500 Received: from [173.51.221.202] (account joe@perches.com HELO joe-laptop.perches.com) by labridge.com (CommuniGate Pro SMTP 5.0.14) with ESMTPA id 19947938; Wed, 12 Dec 2012 10:21:34 -0800 From: Joe Perches To: Jiri Kosina Cc: Paul Mundt , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [TRIVIAL PATCH 13/26] sh: Convert print_symbol to %pSR Date: Wed, 12 Dec 2012 10:19:02 -0800 Message-Id: X-Mailer: git-send-email 1.7.8.112.g3fd21 In-Reply-To: References: Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Use the new vsprintf extension to avoid any possible message interleaving. Signed-off-by: Joe Perches --- arch/sh/kernel/process_32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 73eb66f..a0837ba 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c @@ -38,8 +38,8 @@ void show_regs(struct pt_regs * regs) (int)strcspn(init_utsname()->version, " "), init_utsname()->version); - print_symbol("PC is at %s\n", instruction_pointer(regs)); - print_symbol("PR is at %s\n", regs->pr); + printk("PC is at %pSR\n", (void *)instruction_pointer(regs)); + printk("PR is at %pSR\n", (void *)regs->pr); printk("PC : %08lx SP : %08lx SR : %08lx ", regs->pc, regs->regs[15], regs->sr);