Commit bcc94f9a authored by XueBing Chen's avatar XueBing Chen Committed by Geert Uytterhoeven
Browse files

m68k: sun3: Use __func__ to get function's name in an output message



Prefer using '"%s...", __func__' to get current function's name in
an output message.

Signed-off-by: default avatarXueBing Chen <chenxuebing@jari.cn>
Link: https://lore.kernel.org/r/3461c09c.be8.1817118854e.Coremail.chenxuebing@jari.cn


Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent c4738fa7
Loading
Loading
Loading
Loading
+5 −6
Original line number Original line Diff line number Diff line
@@ -211,7 +211,7 @@ void clear_context(unsigned long context)


     if(context) {
     if(context) {
	     if(!ctx_alloc[context])
	     if(!ctx_alloc[context])
		     panic("clear_context: context not allocated\n");
		     panic("%s: context not allocated\n", __func__);


	     ctx_alloc[context]->context = SUN3_INVALID_CONTEXT;
	     ctx_alloc[context]->context = SUN3_INVALID_CONTEXT;
	     ctx_alloc[context] = (struct mm_struct *)0;
	     ctx_alloc[context] = (struct mm_struct *)0;
@@ -261,7 +261,7 @@ unsigned long get_free_context(struct mm_struct *mm)
		}
		}
		// check to make sure one was really free...
		// check to make sure one was really free...
		if(new == CONTEXTS_NUM)
		if(new == CONTEXTS_NUM)
			panic("get_free_context: failed to find free context");
			panic("%s: failed to find free context", __func__);
	}
	}


	ctx_alloc[new] = mm;
	ctx_alloc[new] = mm;
@@ -369,16 +369,15 @@ int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault)
	}
	}


#ifdef DEBUG_MMU_EMU
#ifdef DEBUG_MMU_EMU
	pr_info("mmu_emu_handle_fault: vaddr=%lx type=%s crp=%p\n",
	pr_info("%s: vaddr=%lx type=%s crp=%p\n", __func__, vaddr,
		vaddr, read_flag ? "read" : "write", crp);
		read_flag ? "read" : "write", crp);
#endif
#endif


	segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF;
	segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF;
	offset  = (vaddr >> SUN3_PTE_SIZE_BITS) & 0xF;
	offset  = (vaddr >> SUN3_PTE_SIZE_BITS) & 0xF;


#ifdef DEBUG_MMU_EMU
#ifdef DEBUG_MMU_EMU
	pr_info("mmu_emu_handle_fault: segment=%lx offset=%lx\n", segment,
	pr_info("%s: segment=%lx offset=%lx\n", __func__, segment, offset);
		offset);
#endif
#endif


	pte = (pte_t *) pgd_val (*(crp + segment));
	pte = (pte_t *) pgd_val (*(crp + segment));