From patchwork Fri Mar 4 12:24:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Kuznetsov X-Patchwork-Id: 12769029 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFEA0C433FE for ; Fri, 4 Mar 2022 12:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rTNytAmk10g8i0xSWBrPAfzHS/in2uzNzpQnV8nDCKQ=; b=ORUVTuamw8sGOg VVGg1DJO6XkW1RI74/ys2jyvZt8Q4Rt8+DN2is6SB4CPqL6pm2DUrzmXZKm7pFr6GuTv11sgNsbpn ppflM7jCm50OELMzwppFrYMUVaJ80vpK1vVNoBOV3U7N8vcVi3GxnkEiV6aaV53JALX4Qo9CeFTb6 8eJusWXjL+To6Ohn+gfVrNSD3Y4mkf7CYziGM0HK2raOeBKmssKvVLhRB6sRDWW91SaFuwSCYI9Ml DqHUrbnzl+G7kLbiCe5e/KENt75svnX2ou3CwemKh5ifHhYx4QcLlVFyJaB32po8cjDDY5v519wiS kYnONRZwcIInZS1krTyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ6zC-009wHm-NP; Fri, 04 Mar 2022 12:24:42 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ6z9-009wGT-2B for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 12:24:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646396675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=aq65+bpnjtXS9LRe8ZYemtc30hGHcnGxIQBdfQAG9Cc=; b=O+D/eWY3n1wssIlHbSjg7OoH+2ZHeZicE+eQgnHqTM5y+EhjbiMKYUI6fqFc0CRioqHAC7 YN5ciQGzueSYUNAxydlsHBZI+SP+dklaJJvBNKpLXRK1ciD73bWrA8r8trHdJ/dJu6AuW8 0s6UgraatJbfLSS8MPGbmo8rTm+n2u4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-122-N9HDgfL-O1WzoMJsH2VmOQ-1; Fri, 04 Mar 2022 07:24:30 -0500 X-MC-Unique: N9HDgfL-O1WzoMJsH2VmOQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0DBD8800423; Fri, 4 Mar 2022 12:24:29 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.40.194.115]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9364A7D704; Fri, 4 Mar 2022 12:24:26 +0000 (UTC) From: Vitaly Kuznetsov To: linux-hyperv@vger.kernel.org Cc: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Michael Kelley , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH] arm64: hyperv: make the format of 'Hyper-V: Host Build' output match x86 Date: Fri, 4 Mar 2022 13:24:25 +0100 Message-Id: <20220304122425.1638370-1-vkuznets@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220304_042439_214343_E6AF6BBD X-CRM114-Status: GOOD ( 13.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently, the following is observed on Hyper-V/ARM: Hyper-V: Host Build 10.0.22477.1061-1-0 This differs from similar output on x86: Hyper-V Host Build:20348-10.0-1-0.1138 and this is inconvenient. As x86 was the first to introduce the current format and to not break existing tools parsing it, change the format on ARM to match. Signed-off-by: Vitaly Kuznetsov --- arch/arm64/hyperv/mshyperv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c index bbbe351e9045..7b9c1c542a77 100644 --- a/arch/arm64/hyperv/mshyperv.c +++ b/arch/arm64/hyperv/mshyperv.c @@ -60,8 +60,8 @@ static int __init hyperv_init(void) b = result.as32.b; c = result.as32.c; d = result.as32.d; - pr_info("Hyper-V: Host Build %d.%d.%d.%d-%d-%d\n", - b >> 16, b & 0xFFFF, a, d & 0xFFFFFF, c, d >> 24); + pr_info("Hyper-V Host Build:%d-%d.%d-%d-%d.%d\n", + a, b >> 16, b & 0xFFFF, c, d >> 24, d & 0xFFFFFF); ret = hv_common_init(); if (ret)