From patchwork Tue Nov 24 23:37:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rashmica Gupta X-Patchwork-Id: 548345 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A6A81140291 for ; Wed, 25 Nov 2015 10:39:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=pRnh/n2x; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 7F10A1A0329 for ; Wed, 25 Nov 2015 10:39:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=pRnh/n2x; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id C219B1A0007 for ; Wed, 25 Nov 2015 10:37:54 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=pRnh/n2x; dkim-atps=neutral Received: by padhx2 with SMTP id hx2so36857387pad.1 for ; Tue, 24 Nov 2015 15:37:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=67TdIve4xrZqIJ/KJkNiqg1KccmeBep9wzYzf9mAh7w=; b=pRnh/n2x2Z63V9Ne28ExtNyF24rSq+nhGKRueolJNrcIMj5oQjCNMCINxYcCVwcwye ZfAJYtOr4Xjfrce392QJRY4wyEr9Gygd2WhjSGQ4mmltPAPR3gwJB+mqxojMV4H2laXq wI4Bhp5kAj/bAryNvHfohQiTTHiDD23KXjaGakY/G9vwDMvP0gK4OwPlqVqjswxxMXSB bZ2hnFibrwy/0r41fVarclnM/I8ah89y/J+k5t+y4H03AyYAj8dLOsywKDOckD1/5H9E RPugMizJoT0abNNu5qcJS3vNIGGjpnPSxom8FypAacNveyarrsB+MMIe6AfZ4jby6pV5 jjOA== X-Received: by 10.67.30.227 with SMTP id kh3mr46334353pad.69.1448408272336; Tue, 24 Nov 2015 15:37:52 -0800 (PST) Received: from circle.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id 81sm16554254pfk.56.2015.11.24.15.37.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Nov 2015 15:37:51 -0800 (PST) From: Rashmica Gupta To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc: Append linux_banner to exception information in xmon. Date: Wed, 25 Nov 2015 10:37:41 +1100 Message-Id: <1448408261-30772-1-git-send-email-rashmicy@gmail.com> X-Mailer: git-send-email 2.5.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command. Signed-off-by: Rashmica Gupta --- arch/powerpc/xmon/xmon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index df05bd2fca07..6d3d9d031aea 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -1528,6 +1528,8 @@ static void excprint(struct pt_regs *fp) if (trap == 0x700) print_bug_trap(fp); + + printf(linux_banner); } static void prregs(struct pt_regs *fp)