Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp721884rdb; Tue, 19 Sep 2023 08:19:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjQnRqSWPT7hPOKLyulSfr0UoJbLeUcca+5mn4MmAa4hktz/1Y0bInmZosaDJ+rkJgrnS2 X-Received: by 2002:a17:90b:3611:b0:274:616e:3fc4 with SMTP id ml17-20020a17090b361100b00274616e3fc4mr9141924pjb.34.1695136762273; Tue, 19 Sep 2023 08:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695136762; cv=none; d=google.com; s=arc-20160816; b=uZFTRAqCOUMN8DwbFDplWf6Bg1PlfaIH905u84rtYhb91S72L8kQKGp4rxSQ81QHei 76MZ5EH35evvcWch11UIVYC5E080z9iTZEr/f8fFBq6YvjzDTIqWpHp4X+Tv5Q7wILzi LEbI3MyHv+mxfWm5X3i1P0DXtsUIQg2vl2PsopvgcXP51Sza2I2APW0+d8Yj3KhkuV0o m5S4s/8/+BnVRwLZEOVYvW3LTCiBm3RC4fXXK36zJFEYvKet7bUqajlALYHnnH2wtQhf Pw44gZFU/Z46jLXleDWr3LAGSQBvpS7sIo85yUkih4eUFhVI3Lbjv40kA+ybGTNJ0sWP cPaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=muQr4xAOr9mwPiaEClsJaD04MPYM4/npYfpYCIbVV/4=; fh=X76b0S9MjgH4l53FcWzDKTpXTkHyZ97zz1+LlFXz+Fk=; b=sqIDxQC8t5A4/sK6gN8RMyfcWqFlYMRUyKKCHD1vx70BYAIRL1W/yCSlketA2q6ggE ksqkC0AA3tJFGc3l+/0JWtQdtxgmWWgE7WNgNNJWnrtpCvRGtVhKgZuC6bpLDZsYUQ6G Vi4i5lgR7gy2+W+p01KSeGd5BgO2YS9/fsjEOkXbeZzG/hJC6JFz6J9LAS/1LTWg/x4F 4qtorjyTPxlR8ohKQl2D0CuBXz+7lpV8IL0N/QUxvaHulV1gx3uc/LhnCmqcfYcneCtV BSaeMx2xTfz+pSbPeW39kHD+ZsVf0+Lkm5Q5C0yYJdN9UBj7KNrsca5RZkSOppUNgm8+ dNLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Vo5IdaRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c15-20020a17090a8d0f00b00274d5eb88c4si5295261pjo.90.2023.09.19.08.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 08:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Vo5IdaRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C778C80907B8; Tue, 19 Sep 2023 04:36:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230513AbjISLgN (ORCPT + 99 others); Tue, 19 Sep 2023 07:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjISLgM (ORCPT ); Tue, 19 Sep 2023 07:36:12 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01B44F5; Tue, 19 Sep 2023 04:36:06 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 51140212C490; Tue, 19 Sep 2023 04:36:05 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 51140212C490 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1695123365; bh=muQr4xAOr9mwPiaEClsJaD04MPYM4/npYfpYCIbVV/4=; h=From:To:Cc:Subject:Date:From; b=Vo5IdaRnq5uPm3g5LOVczP8sMdoHhIaxAnxToQVRE8qhob+TXMvXXhSppLL8jMehe /d0meMoZifn1oReHyJKCxhQCRVEfQmVUetAJrt/sjCrzYQ8RAY/vBpBa16SJolvwmT Y6QnCa7SrQym56jOIUZctD7rUxPOlefgT9Mk4qJo= From: Saurabh Sengar To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com, vkuznets@redhat.com Cc: ssengar@microsoft.com Subject: [PATCH] x86/hyperv: Add common print prefix "Hyper-V" in hv_init Date: Tue, 19 Sep 2023 04:36:01 -0700 Message-Id: <1695123361-8877-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 04:36:16 -0700 (PDT) Add "#define pr_fmt()" in hv_init.c to use "Hyper-V:" as common print prefix for all pr_*() statements in this file. Remove the "Hyper-V:" already prefixed in couple of prints. Signed-off-by: Saurabh Sengar --- arch/x86/hyperv/hv_init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c index 953e280c07c3..1c973067f008 100644 --- a/arch/x86/hyperv/hv_init.c +++ b/arch/x86/hyperv/hv_init.c @@ -7,6 +7,8 @@ * Author : K. Y. Srinivasan */ +#define pr_fmt(fmt) "Hyper-V: " fmt + #include #include #include @@ -176,7 +178,7 @@ void set_hv_tscchange_cb(void (*cb)(void)) struct hv_tsc_emulation_control emu_ctrl = {.enabled = 1}; if (!hv_reenlightenment_available()) { - pr_warn("Hyper-V: reenlightenment support is unavailable\n"); + pr_warn("reenlightenment support is unavailable\n"); return; } @@ -488,7 +490,7 @@ void __init hyperv_init(void) if (cpu_feature_enabled(X86_FEATURE_IBT) && *(u32 *)hv_hypercall_pg != gen_endbr()) { setup_clear_cpu_cap(X86_FEATURE_IBT); - pr_warn("Hyper-V: Disabling IBT because of Hyper-V bug\n"); + pr_warn("Disabling IBT because of Hyper-V bug\n"); } #endif -- 2.34.1