Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp317363ybe; Tue, 10 Sep 2019 19:37:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2a0llJwwdeTrUYOZ+k8Vk1SYP1LFUkGk2KOHOKMiPGkqzMAXL8I/NPWW/gXTjdNa3mmuC X-Received: by 2002:aa7:dd17:: with SMTP id i23mr33564388edv.124.1568169441093; Tue, 10 Sep 2019 19:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568169441; cv=none; d=google.com; s=arc-20160816; b=jooGpxko7yuXXRin9vVus8OPiRs42w7UNkr/oo+52uSsyAtpkVbGflNlNWC3NoGQXX CLlvCbKj0KeQTSeMYhbHUbdo4q4cwpram+TqAMrQ/Rvgx6jHdRp3dlYD9ftOZMmRdpeO xUDbJkTO73bcxSCVEc++st/gJbms5VeQee5g7Q4NvJp7FxSmduOQIMwMFFqhDoUFqKjZ yHKSLYh6dFJwAcHgfg4Qj2RefcX+KeQALBR5fa+oHUwe7sujXCHihH4xq9z1AuXeCAhy oXJQBcKqFRjH0zK0rJDIIj2ar0vaFRNOSQohZ4+Y0FLjt+8FSpma4TgUiRxGOjUmmdSK BK1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=BSNoZ9qTcuIuCLMTyisO4UV04Il8Ht6zdAhtpFTvyFM=; b=nl3/73DXC35rR84Y+yYkvN0zkwYFPkvkB+HpIppNXHn7Y0+dRWy2uzJmTjuq3sL3Un ycGJ99gm6zanP/pIPSgRdwVLihShVLmA38Oqvu7AROFpaRID5Y/vz9yIAmqL2/VheS1Q NIGl2xARORuswgqomYYnKhJjU+OWp5XKZJPMOEochfb3UxPaoEhxr8tQBiHzCJEf6I94 TTduBFP1KCTrHs/eR19IciHGY+rfjvDi4vRSirW2Et/SuVMlRVAPjjkXCejnBSc6JI2y IfawTfDfGiH7n4oP8AzNYhZ5xLy+thjkP30i6anNsFaF5iFYde0jpozmfnsb8hPDi1XP 0Drw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w26si4000422eda.438.2019.09.10.19.36.57; Tue, 10 Sep 2019 19:37:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726753AbfIKCfL (ORCPT + 99 others); Tue, 10 Sep 2019 22:35:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2206 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726703AbfIKCfK (ORCPT ); Tue, 10 Sep 2019 22:35:10 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D20B835A5F6E36408028; Wed, 11 Sep 2019 10:35:06 +0800 (CST) Received: from HGHY2Y004646261.china.huawei.com (10.184.12.158) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Wed, 11 Sep 2019 10:34:59 +0800 From: Zenghui Yu To: , , , CC: , , , , Zenghui Yu Subject: [PATCH 2/2] KVM: arm/arm64: Print the EC hex value with its exact width Date: Wed, 11 Sep 2019 02:33:36 +0000 Message-ID: <1568169216-12632-3-git-send-email-yuzenghui@huawei.com> X-Mailer: git-send-email 2.6.4.windows.1 In-Reply-To: <1568169216-12632-1-git-send-email-yuzenghui@huawei.com> References: <1568169216-12632-1-git-send-email-yuzenghui@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.184.12.158] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org EC is the bits [31:26] of ESR_ELx on arm64 (HSR on arm). Print the hex value with its exact width (8). Signed-off-by: Zenghui Yu --- virt/kvm/arm/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/trace.h b/virt/kvm/arm/trace.h index 204d210d01c2..022b0a060034 100644 --- a/virt/kvm/arm/trace.h +++ b/virt/kvm/arm/trace.h @@ -42,7 +42,7 @@ TRACE_EVENT(kvm_exit, __entry->vcpu_pc = vcpu_pc; ), - TP_printk("%s: HSR_EC: 0x%04x (%s), PC: 0x%08lx", + TP_printk("%s: HSR_EC: 0x%02x (%s), PC: 0x%08lx", __print_symbolic(__entry->ret, kvm_arm_exception_type), __entry->esr_ec, __print_symbolic(__entry->esr_ec, kvm_arm_exception_class), -- 2.19.1