Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f5b77f5 authored by Borislav Petkov's avatar Borislav Petkov Committed by Avi Kivity
Browse files

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: default avatarBorislav Petkov <bp@alien8.de>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent bf4ca23e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -630,15 +630,12 @@ static int svm_hardware_enable(void *garbage)
		return -EBUSY;

	if (!has_svm()) {
		printk(KERN_ERR "svm_hardware_enable: err EOPNOTSUPP on %d\n",
		       me);
		pr_err("%s: err EOPNOTSUPP on %d\n", __func__, me);
		return -EINVAL;
	}
	sd = per_cpu(svm_data, me);

	if (!sd) {
		printk(KERN_ERR "svm_hardware_enable: svm_data is NULL on %d\n",
		       me);
		pr_err("%s: svm_data is NULL on %d\n", __func__, me);
		return -EINVAL;
	}