mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-11 19:19:42 +00:00
KVM: PPC: Use __func__ to get function's name
Prefer using '"%s...", __func__' to get current function's name in output messages. Signed-off-by: XueBing Chen <chenxuebing@jari.cn> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/13b2c857.beb.181725bad35.Coremail.chenxuebing@jari.cn
This commit is contained in:
parent
247f34f7b8
commit
61119786de
1 changed files with 3 additions and 4 deletions
|
@ -1202,7 +1202,7 @@ static int resize_hpt_allocate(struct kvm_resize_hpt *resize)
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
resize_hpt_debug(resize, "resize_hpt_allocate(): HPT @ 0x%lx\n",
|
resize_hpt_debug(resize, "%s(): HPT @ 0x%lx\n", __func__,
|
||||||
resize->hpt.virt);
|
resize->hpt.virt);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1443,7 +1443,7 @@ static void resize_hpt_prepare_work(struct work_struct *work)
|
||||||
*/
|
*/
|
||||||
mutex_unlock(&kvm->arch.mmu_setup_lock);
|
mutex_unlock(&kvm->arch.mmu_setup_lock);
|
||||||
|
|
||||||
resize_hpt_debug(resize, "resize_hpt_prepare_work(): order = %d\n",
|
resize_hpt_debug(resize, "%s(): order = %d\n", __func__,
|
||||||
resize->order);
|
resize->order);
|
||||||
|
|
||||||
err = resize_hpt_allocate(resize);
|
err = resize_hpt_allocate(resize);
|
||||||
|
@ -1887,8 +1887,7 @@ static ssize_t kvm_htab_write(struct file *file, const char __user *buf,
|
||||||
ret = kvmppc_virtmode_do_h_enter(kvm, H_EXACT, i, v, r,
|
ret = kvmppc_virtmode_do_h_enter(kvm, H_EXACT, i, v, r,
|
||||||
tmp);
|
tmp);
|
||||||
if (ret != H_SUCCESS) {
|
if (ret != H_SUCCESS) {
|
||||||
pr_err("kvm_htab_write ret %ld i=%ld v=%lx "
|
pr_err("%s ret %ld i=%ld v=%lx r=%lx\n", __func__, ret, i, v, r);
|
||||||
"r=%lx\n", ret, i, v, r);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (!mmu_ready && is_vrma_hpte(v)) {
|
if (!mmu_ready && is_vrma_hpte(v)) {
|
||||||
|
|
Loading…
Reference in a new issue