summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-20 08:45:17 +0000
committerphk <phk@FreeBSD.org>2002-10-20 08:45:17 +0000
commit83404357e98c5f055e7fd9b7299aec3a4041ea43 (patch)
tree6ef1e0522eb6337a2df220959e7fef4c3308ad5e /sys/geom/geom_io.c
parent7105c422c01467ed200c2359e5458ef63c60fb66 (diff)
downloadFreeBSD-src-83404357e98c5f055e7fd9b7299aec3a4041ea43.zip
FreeBSD-src-83404357e98c5f055e7fd9b7299aec3a4041ea43.tar.gz
Don't track bio allocation in debug output.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index a33c2ee..aa1e7d7 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -37,6 +37,7 @@
#include <sys/param.h>
+#include <sys/stdint.h>
#ifndef _KERNEL
#include <stdio.h>
#include <string.h>
@@ -125,7 +126,7 @@ g_new_bio(void)
bp = g_bioq_first(&g_bio_idle);
if (bp == NULL)
bp = g_malloc(sizeof *bp, M_NOWAIT | M_ZERO);
- g_trace(G_T_BIO, "g_new_bio() = %p", bp);
+ /* g_trace(G_T_BIO, "g_new_bio() = %p", bp); */
return (bp);
}
@@ -133,7 +134,7 @@ void
g_destroy_bio(struct bio *bp)
{
- g_trace(G_T_BIO, "g_destroy_bio(%p)", bp);
+ /* g_trace(G_T_BIO, "g_destroy_bio(%p)", bp); */
bzero(bp, sizeof *bp);
g_bioq_enqueue_tail(bp, &g_bio_idle);
}
@@ -153,7 +154,7 @@ g_clone_bio(struct bio *bp)
bp2->bio_attribute = bp->bio_attribute;
bp->bio_children++; /* XXX: atomic ? */
}
- g_trace(G_T_BIO, "g_clone_bio(%p) = %p", bp, bp2);
+ /* g_trace(G_T_BIO, "g_clone_bio(%p) = %p", bp, bp2); */
return(bp2);
}
@@ -307,9 +308,10 @@ g_io_deliver(struct bio *bp, int error)
KASSERT(bp->bio_from->geom != NULL, ("NULL bio_from->geom in g_io_deliver"));
KASSERT(bp->bio_to != NULL, ("NULL bio_to in g_io_deliver"));
g_trace(G_T_BIO,
- "g_io_deliver(%p) from %p(%s) to %p(%s) cmd %d error %d",
+ "g_io_deliver(%p) from %p(%s) to %p(%s) cmd %d error %d off %jd len %jd",
bp, bp->bio_from, bp->bio_from->geom->name,
- bp->bio_to, bp->bio_to->name, bp->bio_cmd, error);
+ bp->bio_to, bp->bio_to->name, bp->bio_cmd, error,
+ (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length);
/* finish_stats(&bp->stats); */
bp->bio_error = error;
OpenPOWER on IntegriCloud