diff options
author | phk <phk@FreeBSD.org> | 2004-03-10 08:49:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-10 08:49:08 +0000 |
commit | 9a7074f4cb924ae82908691b9014ec3046fa7a8a (patch) | |
tree | 3d29009688ec2443c80b12f054dff9ab4238ba22 /sys/geom/geom_dump.c | |
parent | 7432091236a4f7e854963b7353bb9e33c7f126ad (diff) | |
download | FreeBSD-src-9a7074f4cb924ae82908691b9014ec3046fa7a8a.zip FreeBSD-src-9a7074f4cb924ae82908691b9014ec3046fa7a8a.tar.gz |
Rearrange some of the GEOM debugging tools to be more structured.
Retire g_sanity() and corresponding debugflag (0x8)
Retire g_{stall,release}_events().
Under #ifdef DIAGNOSTIC:
Make g_valid_obj() an official function and have it return an an
non-zero integer which indicates the kind of object when found.
Implement G_VALID_{CLASS,GEOM,CONSUMER,PROVIDER}() macros based
on g_valid_obj().
Sprinkle calls to these macros liberally over the infrastructure.
Always check that we do not free a live object.
Diffstat (limited to 'sys/geom/geom_dump.c')
-rw-r--r-- | sys/geom/geom_dump.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c index f110ceb..fd7001f 100644 --- a/sys/geom/geom_dump.c +++ b/sys/geom/geom_dump.c @@ -273,7 +273,6 @@ g_trace(int level, const char *fmt, ...) { va_list ap; - g_sanity(NULL); if (!(g_debugflags & level)) return; va_start(ap, fmt); |