On 2019/10/3 1:15, Sean Christopherson wrote:

On Mon, Sep 30, 2019 at 08:44:37PM +0800, Zhenzhong Duan wrote:
pr_*() is preferred than printk(KERN_* ...), after change all the print
in arch/x86/kernel/kvm.c will have "KVM: xxx" style.

No functional change.

Suggested-by: Vitaly Kuznetsov<[email protected]>
This wasn't really suggested by Vitaly, he just requested it be done in a
separate patch.

Will fix.


Signed-off-by: Zhenzhong Duan<[email protected]>
Cc: Paolo Bonzini<[email protected]>
Cc: Radim Krcmar<[email protected]>
Cc: Sean Christopherson<[email protected]>
Cc: Vitaly Kuznetsov<[email protected]>
Cc: Wanpeng Li<[email protected]>
Cc: Jim Mattson<[email protected]>
Cc: Joerg Roedel<[email protected]>
Cc: Thomas Gleixner<[email protected]>
Cc: Ingo Molnar<[email protected]>
Cc: Borislav Petkov<[email protected]>
Cc: "H. Peter Anvin"<[email protected]>
---
  arch/x86/kernel/kvm.c | 24 ++++++++++++------------
  1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index a4f108d..ce4f578 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -7,6 +7,8 @@
   *   Authors: Anthony Liguori<[email protected]>
   */
+#define pr_fmt(fmt) "KVM: " fmt
Not a fan of "KVM" as the prefix as it's easily confused with KVM the
hypervisor.  Maybe "kvm_guest"?

Yeah, looks better, will change to"kvm_guest". Thanks

Zhenzhong

Reply via email to