From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF420C43217 for ; Thu, 7 Oct 2021 08:52:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D873E610A2 for ; Thu, 7 Oct 2021 08:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240489AbhJGIyR (ORCPT ); Thu, 7 Oct 2021 04:54:17 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54204 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240594AbhJGIyH (ORCPT ); Thu, 7 Oct 2021 04:54:07 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1978lXPT029659; Thu, 7 Oct 2021 04:52:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=cvnvXtj1yQiS8YzNugmiaPVr3P80N8flx2Wmk/6Pb8I=; b=rv8NlUJ2iL/K7T2Cd/4CK8XCrfzxmNh+hxUZsbm0sT6rkvwo301PtIgyC0trFLF6pPwh StomCToe/oLfOzsrpCZ5/Z9VljfJuSLL4H9Bht4J2rfWBwHGkou9puuDP2GZfNEL1B+E ZEUS/MyhoeVxDG36KqU2cgiY+wI74qmstIdiDPnRsIygJT/G89ZaALXuCsb/D7w4rN8E vql1vmse70/2v4XH3hqFqOtzVjIuXz1Y+5p39CJSn+nXgkH8uSzZE2cCdlsG8yRhBjJ7 tcrdyOjRvmYFpCe8a8hL2Pv/LxX/Fe0hewhU6IzYEi5vdWS86a8+7KRcCLLTnDY+Ki2d Bg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bh8caxu4c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Oct 2021 04:52:13 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1976dNJv003950; Thu, 7 Oct 2021 04:52:12 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bh8caxu3t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Oct 2021 04:52:12 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1978hM3M004926; Thu, 7 Oct 2021 08:52:10 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 3bef2ap0tf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Oct 2021 08:52:10 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1978q2lw46203380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 7 Oct 2021 08:52:02 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CFC77AE071; Thu, 7 Oct 2021 08:52:00 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4B92DAE06F; Thu, 7 Oct 2021 08:51:58 +0000 (GMT) Received: from linux6.. (unknown [9.114.12.104]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 7 Oct 2021 08:51:57 +0000 (GMT) From: Janosch Frank To: kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, imbrenda@linux.ibm.com, david@redhat.com, thuth@redhat.com, seiden@linux.ibm.com, scgl@linux.ibm.com Subject: [kvm-unit-tests PATCH v3 6/9] lib: s390x: Print PGM code as hex Date: Thu, 7 Oct 2021 08:50:24 +0000 Message-Id: <20211007085027.13050-7-frankja@linux.ibm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211007085027.13050-1-frankja@linux.ibm.com> References: <20211007085027.13050-1-frankja@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: AvF_buktNevYTbhnpC0gIW-2tB4kG6CV X-Proofpoint-ORIG-GUID: EWbj51GFfLLbp2YBi0aS41Wvl3ly4mZB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-10-06_04,2021-10-07_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 adultscore=0 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110070059 Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org We have them defined as hex constants in lib/s390x/asm/arch_def.h so why not print them as hex values? Signed-off-by: Janosch Frank Reviewed-by: Claudio Imbrenda Reviewed-by: Thomas Huth --- lib/s390x/interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/s390x/interrupt.c b/lib/s390x/interrupt.c index 126d4c0a..27d3b767 100644 --- a/lib/s390x/interrupt.c +++ b/lib/s390x/interrupt.c @@ -169,7 +169,7 @@ static void print_pgm_info(struct stack_frame_int *stack) lc->pgm_old_psw.addr <= (uintptr_t)sie_exit); printf("\n"); - printf("Unexpected program interrupt %s: %d on cpu %d at %#lx, ilen %d\n", + printf("Unexpected program interrupt %s: %#x on cpu %d at %#lx, ilen %d\n", in_sie ? "in SIE" : "", lc->pgm_int_code, stap(), lc->pgm_old_psw.addr, lc->pgm_int_id); print_int_regs(stack); -- 2.30.2