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.
This commit is contained in:
phk 2003-03-31 18:35:37 +00:00
parent 898b60e54a
commit 475cec9193
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -51,6 +51,7 @@ extern int g_debugflags;
* 32 G_T_DETAILS
*/
#define G_F_DISKIOCTL 64
#define G_F_CTLDUMP 128
/*