Skip to content

Commit

Permalink
KVM: SVM: Cleanup error statements
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Avi Kivity <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
bp3tk0v authored and avikivity committed Oct 22, 2012
1 parent bf4ca23 commit 1f5b77f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1f5b77f

Please sign in to comment.