Module Name:    src
Committed By:   skrll
Date:           Thu Mar  1 21:10:01 UTC 2012

Modified Files:
        src/sys/arch/hp700/hp700: intr.c

Log Message:
Use __func__ in panic messages.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/hp700/hp700/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/hp700/intr.c
diff -u src/sys/arch/hp700/hp700/intr.c:1.36 src/sys/arch/hp700/hp700/intr.c:1.37
--- src/sys/arch/hp700/hp700/intr.c:1.36	Fri Feb  4 14:51:02 2011
+++ src/sys/arch/hp700/hp700/intr.c	Thu Mar  1 21:10:00 2012
@@ -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 @@ hp700_interrupt_register_establish(struc
 		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 @@ hp700_intr_establish(int ipl, int (*hand
 	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 @@ hp700_intr_establish(int ipl, int (*hand
 			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 @@ _hp700_intr_ipl_next(void)
 		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;
 }
 

Reply via email to