Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/hp700 Use __func__ in panic messages.



details:   https://anonhg.NetBSD.org/src/rev/f5c017964fb0
branches:  trunk
changeset: 777697:f5c017964fb0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 01 21:10:00 2012 +0000

description:
Use __func__ in panic messages.

diffstat:

 sys/arch/hp700/hp700/intr.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 82c524872fed -r f5c017964fb0 sys/arch/hp700/hp700/intr.c
--- a/sys/arch/hp700/hp700/intr.c       Thu Mar 01 20:16:27 2012 +0000
+++ b/sys/arch/hp700/hp700/intr.c       Thu Mar 01 21:10:00 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.36 2011/02/04 14:51:02 skrll Exp $  */
+/*     $NetBSD: intr.c,v 1.37 2012/03/01 21:10:00 skrll Exp $  */
 /*     $OpenBSD: intr.c,v 1.27 2009/12/31 12:52:35 jsing Exp $ */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.36 2011/02/04 14:51:02 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.37 2012/03/01 21:10:00 skrll Exp $");
 
 #define __MUTEX_PRIVATE
 
@@ -126,7 +126,7 @@
                if (hp700_interrupt_registers[idx] == NULL)
                        break;
        if (idx == HP700_INTERRUPT_BITS)
-               panic("hp700_interrupt_register_establish: too many regs");
+               panic("%s: too many regs", __func__);
        hp700_interrupt_registers[idx] = ir;
 }
 
@@ -184,7 +184,7 @@
        if (ir->ir_bits_map[31 ^ bit_pos] != IR_BIT_UNUSED &&
            !IR_BIT_NESTED_P(ir->ir_bits_map[31 ^ bit_pos]) &&
            handler == NULL)
-               panic("hp700_intr_establish: int already handled");
+               panic("%s: int already handled", __func__);
 
        /*
         * If this interrupt bit leads us to another interrupt register,
@@ -195,7 +195,7 @@
                        if (hp700_interrupt_registers[idx] == arg)
                                break;
                if (idx == HP700_INTERRUPT_BITS)
-                       panic("hp700_intr_establish: unknown int reg");
+                       panic("%s: unknown int reg", __func__);
                ir->ir_bits_map[31 ^ bit_pos] = IR_BIT_REG | idx;
                
                return NULL;
@@ -261,7 +261,7 @@
                if (hp700_interrupt_bits[idx].ib_reg == NULL)
                        break;
        if (idx == HP700_INTERRUPT_BITS)
-               panic("_hp700_intr_spl_bit: too many devices");
+               panic("%s: too many devices", __func__);
        return idx;
 }
 



Home | Main Index | Thread Index | Old Index