summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-03-07 17:58:25 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-03-07 17:58:25 +0000
commitd4daec323e15eacdfee711f69ae5c11d6fa99b79 (patch)
treeaf5975109fd5df4cc6fa968526e047744b331a52 /sys/arch
parente4a3a72d5ebf4a1ac0a732079c4d0b67cc205f26 (diff)
Remove some debugging code accidentally committed in previous
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/iommu.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/sparc64/dev/iommu.c b/sys/arch/sparc64/dev/iommu.c
index 2605b671e32..529fb42e027 100644
--- a/sys/arch/sparc64/dev/iommu.c
+++ b/sys/arch/sparc64/dev/iommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iommu.c,v 1.12 2002/03/07 17:44:10 jason Exp $ */
+/* $OpenBSD: iommu.c,v 1.13 2002/03/07 17:58:24 jason Exp $ */
/* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */
/*
@@ -954,7 +954,6 @@ iommu_dvmamap_sync(t, is, map, offset, len, ops)
bus_size_t len;
int ops;
{
- bus_addr_t orig_offset = offset;
bus_size_t count;
int i, needsflush = 0;
@@ -964,17 +963,8 @@ iommu_dvmamap_sync(t, is, map, offset, len, ops)
offset -= map->dm_segs[i].ds_len;
}
- if (i == map->dm_nsegs) {
- printf("map length: 0x%llx\n", (unsigned long long)map->dm_mapsize);
- printf("looking for 0x%llx/0x%llx\n",
- (unsigned long long)orig_offset, (unsigned long long)len);
- for (i = 0; i < map->dm_nsegs; i++) {
- printf("%d: addr 0x%llx len 0x%llx\n", i,
- (unsigned long long)map->dm_segs[i].ds_addr,
- (unsigned long long)map->dm_segs[i].ds_len);
- }
+ if (i == map->dm_nsegs)
panic("iommu_dvmamap_sync: too short %lu", offset);
- }
for (; len > 0 && i < map->dm_nsegs; i++) {
count = min(map->dm_segs[i].ds_len - offset, len);