diff options
author | phk <phk@FreeBSD.org> | 2003-03-31 18:35:37 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-31 18:35:37 +0000 |
commit | 5b75c05966032cd391a6d88a2c22a048a1720339 (patch) | |
tree | af273ef20cbbd4ce18fc3d304213079ee953b4c7 /sys | |
parent | 0ab41a76583e0f1a267c092541c930b4883f35ff (diff) | |
download | FreeBSD-src-5b75c05966032cd391a6d88a2c22a048a1720339.zip FreeBSD-src-5b75c05966032cd391a6d88a2c22a048a1720339.tar.gz |
Remove some debugging in the new OAM[*] and add a debug flag for other
parts of it.
[*] I've been asked what "OAM" means: It's an acronym used in the
telecom industry, "Operations And Maintenance", and there it covers
anything from a single unlabeled led on the frontpanel the the full
nightmare of CMIP for SS7.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/geom_ctl.c | 7 | ||||
-rw-r--r-- | sys/geom/geom_int.h | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index e098c18..6c7e1c4 100644 --- a/sys/geom/geom_ctl.c +++ b/sys/geom/geom_ctl.c @@ -398,13 +398,11 @@ gctl_create_geom(struct gctl_req *req) mp = gctl_get_class(req); if (mp == NULL) return; - printf("Found class: %p\n", mp); if (mp->create_geom == NULL) { gctl_error(req, "Class has no create_geom method"); return; } pp = gctl_get_provider(req); - printf("Found provider: %p\n", pp); mp->create_geom(req, mp, pp); g_topology_assert(); } @@ -419,7 +417,6 @@ gctl_destroy_geom(struct gctl_req *req) mp = gctl_get_class(req); if (mp == NULL) return; - printf("Found class: %p\n", mp); if (mp->destroy_geom == NULL) { gctl_error(req, "Class has no destroy_geom method"); return; @@ -433,7 +430,6 @@ gctl_destroy_geom(struct gctl_req *req) gctl_error(req, "Geom not of specificed class"); return; } - printf("Found geom: %p\n", gp); mp->destroy_geom(req, mp, gp); g_topology_assert(); } @@ -473,7 +469,8 @@ g_ctl_ioctl_ctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *t if (error) return (error); - gctl_dump(req); + if (g_debugflags & G_F_CTLDUMP) + gctl_dump(req); #if 0 g_stall_events(); #endif diff --git a/sys/geom/geom_int.h b/sys/geom/geom_int.h index 1143c56..f709d73 100644 --- a/sys/geom/geom_int.h +++ b/sys/geom/geom_int.h @@ -51,6 +51,7 @@ extern int g_debugflags; * 32 G_T_DETAILS */ #define G_F_DISKIOCTL 64 +#define G_F_CTLDUMP 128 /* |