aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorBorislav Petkov <bp@alien8.de>2012-10-20 14:20:04 -0400
committerAvi Kivity <avi@redhat.com>2012-10-22 10:04:59 -0400
commit1f5b77f51a221f5eb10af08da9067fba360dc52f (patch)
tree85661d6ef5de965b447164829efa6985a7778003 /arch/x86/kvm
parentbf4ca23ef597a440ca46c695d8711ec0b387f12c (diff)
KVM: SVM: Cleanup error statements
Use __func__ instead of the function name in svm_hardware_enable since those things tend to get out of sync. This also slims down printk line length in conjunction with using pr_err. No functionality change. Cc: Joerg Roedel <joro@8bytes.org> Cc: Avi Kivity <avi@redhat.com> Signed-off-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/svm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index d017df3899ef..e93908fabf46 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -630,15 +630,12 @@ static int svm_hardware_enable(void *garbage)
630 return -EBUSY; 630 return -EBUSY;
631 631
632 if (!has_svm()) { 632 if (!has_svm()) {
633 printk(KERN_ERR "svm_hardware_enable: err EOPNOTSUPP on %d\n", 633 pr_err("%s: err EOPNOTSUPP on %d\n", __func__, me);
634 me);
635 return -EINVAL; 634 return -EINVAL;
636 } 635 }
637 sd = per_cpu(svm_data, me); 636 sd = per_cpu(svm_data, me);
638
639 if (!sd) { 637 if (!sd) {
640 printk(KERN_ERR "svm_hardware_enable: svm_data is NULL on %d\n", 638 pr_err("%s: svm_data is NULL on %d\n", __func__, me);
641 me);
642 return -EINVAL; 639 return -EINVAL;
643 } 640 }
644 641