Re: [PATCH 5/5] KVM: x86: Clean up redundant pr_fmt(fmt) macro definition for svm

From: Like Xu
Date: Thu Aug 12 2021 - 09:00:47 EST


On 11/8/2021 1:48 am, Paolo Bonzini wrote:
On 09/08/21 11:34, Like Xu wrote:
+#undef pr_fmt
+#define pr_fmt(fmt) "SVM: " fmt
+
  #include <linux/kvm_types.h>

Why do you need the #undef?

Paolo


I've seen most of the redefinition code for 'pr_fmt' like this,
for example:

- 3bfaf95cb1fe81872df884956c704469e68a5bee
- d157aa0fb241646e8818f699653ed983e6581b11