]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: math-emu: Convert debug printks to pr_debug getting.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 19 Apr 2014 12:03:37 +0000 (14:03 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Apr 2014 23:32:17 +0000 (01:32 +0200)
And another bunch of #ifdefs bite the dust.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/cp1emu.c
arch/mips/math-emu/dsemul.c

index e7562aa2d2a1dcba7470c1a4356b5f159d4baba1..b366fdaf324a183594d1e4a5559a8a067c7d0e5c 100644 (file)
@@ -1119,11 +1119,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
                                value = ctx->fcr31;
                                value = (value & ~FPU_CSR_RM) |
                                        mips_rm[modeindex(value)];
-#ifdef CSRTRACE
-                               printk("%p gpr[%d]<-csr=%08x\n",
-                                       (void *) (xcp->cp0_epc),
-                                       MIPSInst_RT(ir), value);
-#endif
+                               pr_debug("%p gpr[%d]<-csr=%08x\n",
+                                        (void *) (xcp->cp0_epc),
+                                        MIPSInst_RT(ir), value);
                        }
                        else if (MIPSInst_RD(ir) == FPCREG_RID)
                                value = 0;
@@ -1146,11 +1144,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
                        /* we only have one writable control reg
                         */
                        if (MIPSInst_RD(ir) == FPCREG_CSR) {
-#ifdef CSRTRACE
-                               printk("%p gpr[%d]->csr=%08x\n",
-                                       (void *) (xcp->cp0_epc),
-                                       MIPSInst_RT(ir), value);
-#endif
+                               pr_debug("%p gpr[%d]->csr=%08x\n",
+                                        (void *) (xcp->cp0_epc),
+                                        MIPSInst_RT(ir), value);
 
                                /*
                                 * Don't write reserved bits,
index c6e879c59a7fccba7d92ede33fe11e7d65832ff5..4f514f3724cb9e819276d2cf34ad8b83f722d74a 100644 (file)
@@ -44,10 +44,8 @@ int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc)
                clear_delay_slot(regs);
                return 0;
        }
-#ifdef DSEMUL_TRACE
-       printk("dsemul %lx %lx\n", regs->cp0_epc, cpc);
 
-#endif
+       pr_debug("dsemul %lx %lx\n", regs->cp0_epc, cpc);
 
        /*
         * The strategy is to push the instruction onto the user stack
@@ -149,9 +147,8 @@ int do_dsemulret(struct pt_regs *xcp)
         * emulating the branch delay instruction.
         */
 
-#ifdef DSEMUL_TRACE
-       printk("dsemulret\n");
-#endif
+       pr_debug("dsemulret\n");
+
        if (__get_user(epc, &fr->epc)) {                /* Saved EPC */
                /* This is not a good situation to be in */
                force_sig(SIGBUS, current);