diff options
author | phk <phk@FreeBSD.org> | 2003-05-02 06:36:14 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-02 06:36:14 +0000 |
commit | 4c52a206d24421e6c4708baeba60bb6f9b88ebb4 (patch) | |
tree | f30ff1854b1e718bcb5d94f16dcee4c13b5afe1a /sys/geom/geom_ctl.c | |
parent | 6b0e95eef5a40043ddb0bb6618b23b20c6da7ab4 (diff) | |
download | FreeBSD-src-4c52a206d24421e6c4708baeba60bb6f9b88ebb4.zip FreeBSD-src-4c52a206d24421e6c4708baeba60bb6f9b88ebb4.tar.gz |
Use g_slice_spoiled() rather than g_std_spoiled().
Remember to free the buffer we got from g_read_data().
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r-- | sys/geom/geom_ctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index 92ef461..88ab37e 100644 --- a/sys/geom/geom_ctl.c +++ b/sys/geom/geom_ctl.c @@ -509,11 +509,15 @@ static int g_ctl_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) { int error; + u_long l1, l2; switch(cmd) { case GEOM_CTL: DROP_GIANT(); + l1 = M_GEOM[0].ks_memuse; error = g_ctl_ioctl_ctl(dev, cmd, data, fflag, td); + l2 = M_GEOM[0].ks_memuse; + printf("%ld %ld -> %ld\n", l1, l2, l2 - l1); PICKUP_GIANT(); break; default: |