Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/hp300 Use __func__ to print (correct) functio...
details: https://anonhg.NetBSD.org/src/rev/8c04feead6fc
branches: trunk
changeset: 761951:8c04feead6fc
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Feb 12 03:43:50 2011 +0000
description:
Use __func__ to print (correct) function names.
diffstat:
sys/arch/hp300/hp300/bus_space.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (74 lines):
diff -r 9c2cbe7e1e8f -r 8c04feead6fc sys/arch/hp300/hp300/bus_space.c
--- a/sys/arch/hp300/hp300/bus_space.c Sat Feb 12 03:25:37 2011 +0000
+++ b/sys/arch/hp300/hp300/bus_space.c Sat Feb 12 03:43:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.17 2008/04/28 20:23:19 martin Exp $ */
+/* $NetBSD: bus_space.c,v 1.18 2011/02/12 03:43:50 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.17 2008/04/28 20:23:19 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.18 2011/02/12 03:43:50 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -66,7 +66,7 @@
}
if (t->bustype != HP300_BUS_SPACE_DIO)
- panic("bus_space_map: bad space tag");
+ panic("%s: bad space tag", __FUNC__);
/*
* Allocate virtual address space from the extio extent map.
@@ -112,7 +112,7 @@
/*
* Not meaningful on any currently-supported hp300 bus.
*/
- panic("bus_space_free: shouldn't be here");
+ panic("%s: shouldn't be here", __func__);
}
void
@@ -130,7 +130,7 @@
}
if (t->bustype != HP300_BUS_SPACE_DIO)
- panic("bus_space_map: bad space tag");
+ panic("%s: bad space tag", __func__);
kva = m68k_trunc_page(bsh);
offset = m68k_page_offset(bsh);
@@ -139,7 +139,7 @@
#ifdef DIAGNOSTIC
if (bsh < (vaddr_t)extiobase ||
bsh >= ((vaddr_t)extiobase + ptoa(EIOMAPSIZE)))
- panic("bus_space_unmap: bad bus space handle");
+ panic("%s: bad bus space handle", __func__);
#endif
/*
@@ -152,8 +152,8 @@
*/
if (extent_free(extio_ex, kva, size,
EX_NOWAIT | (extio_ex_malloc_safe ? EX_MALLOCOK : 0)))
- printf("bus_space_unmap: kva 0x%lx size 0x%lx: "
- "can't free region\n", (u_long) bsh, size);
+ printf("%s: kva 0x%lx size 0x%lx: "
+ "can't free region\n", __func-_, (u_long)bsh, size);
}
/* ARGSUSED */
@@ -194,7 +194,7 @@
break;
default:
- panic("bus_space_probe: unupported data size %d", sz);
+ panic("%s: unupported data size %d", __func__, sz);
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index