diff options
author | phk <phk@FreeBSD.org> | 2003-07-02 08:07:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-02 08:07:07 +0000 |
commit | cee4a6c39a71874223611969d32b56b6955af784 (patch) | |
tree | f1747b13d13d8edc775cceba674eadf4b5c36f78 /sys/geom | |
parent | 230d90f47b8868031acf79ce9c57bfb1f0cec34e (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/geom/geom_ctl.c | 3 |
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); } |