svn commit: r245726 - projects/virtio/sys/dev/virtio/block
Bryan Venteicher
bryanv at FreeBSD.org
Mon Jan 21 07:03:14 UTC 2013
Author: bryanv
Date: Mon Jan 21 07:03:13 2013
New Revision: 245726
URL: http://svnweb.freebsd.org/changeset/base/245726
Log:
virtio_blk: More verbose ASSERT messages
Approved by: grehan (implicit)
Modified:
projects/virtio/sys/dev/virtio/block/virtio_blk.c
Modified: projects/virtio/sys/dev/virtio/block/virtio_blk.c
==============================================================================
--- projects/virtio/sys/dev/virtio/block/virtio_blk.c Mon Jan 21 07:02:41 2013 (r245725)
+++ projects/virtio/sys/dev/virtio/block/virtio_blk.c Mon Jan 21 07:03:13 2013 (r245726)
@@ -541,8 +541,8 @@ vtblk_strategy(struct bio *bp)
max_nsegs = sc->vtblk_max_nsegs - VTBLK_MIN_SEGMENTS;
KASSERT(nsegs <= max_nsegs,
- ("bio %p spanned too many segments: %d, max: %d",
- bp, nsegs, max_nsegs));
+ ("%s: bio %p spanned too many segments: %d, max: %d",
+ __func__, bp, nsegs, max_nsegs));
}
#endif
@@ -1136,7 +1136,7 @@ vtblk_free_requests(struct vtblk_softc *
struct vtblk_request *req;
KASSERT(TAILQ_EMPTY(&sc->vtblk_req_ready),
- ("ready requests left on queue"));
+ ("%s: ready requests left on queue", __func__));
while ((req = vtblk_dequeue_request(sc)) != NULL) {
sc->vtblk_request_count--;
More information about the svn-src-projects
mailing list