diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-31 18:35:37 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-31 18:35:37 +0000 |
commit | afa2a5aab75ae5fdef6ab23dcd205c12d21c3a27 (patch) | |
tree | af273ef20cbbd4ce18fc3d304213079ee953b4c7 /sys/geom/geom_ctl.c | |
parent | a11d7214fda8063afc53d71213791438633ec43b (diff) | |
download | src-afa2a5aab75ae5fdef6ab23dcd205c12d21c3a27.tar.gz src-afa2a5aab75ae5fdef6ab23dcd205c12d21c3a27.zip |
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.
Notes
Notes:
svn path=/head/; revision=112876
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r-- | sys/geom/geom_ctl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index e098c186dd36..6c7e1c419d74 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 |