summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ctl.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-02 08:07:07 +0000
committerphk <phk@FreeBSD.org>2003-07-02 08:07:07 +0000
commitcee4a6c39a71874223611969d32b56b6955af784 (patch)
treef1747b13d13d8edc775cceba674eadf4b5c36f78 /sys/geom/geom_ctl.c
parent230d90f47b8868031acf79ce9c57bfb1f0cec34e (diff)
downloadFreeBSD-src-cee4a6c39a71874223611969d32b56b6955af784.zip
FreeBSD-src-cee4a6c39a71874223611969d32b56b6955af784.tar.gz
Only dump 512 bytes of debugging.
Always wait for things to settle before returning.
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r--sys/geom/geom_ctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c
index d543129..b9f2a92 100644
--- a/sys/geom/geom_ctl.c
+++ b/sys/geom/geom_ctl.c
@@ -266,7 +266,7 @@ gctl_dump(struct gctl_req *req)
} else if (ap->flag & GCTL_PARAM_ASCII) {
printf("\"%s\"", (char *)ap->kvalue);
} else if (ap->len > 0) {
- for (j = 0; j < ap->len; j++)
+ for (j = 0; j < ap->len && j < 512; j++)
printf(" %02x", ((u_char *)ap->kvalue)[j]);
} else {
printf(" = %p", ap->kvalue);
@@ -473,6 +473,7 @@ g_ctl_ioctl_ctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *t
gctl_copyout(req);
}
+ g_waitidle();
gctl_free(req);
return (req->nerror);
}
OpenPOWER on IntegriCloud