Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/ttm Use KASSERTMSG to show ba...
details: https://anonhg.NetBSD.org/src/rev/9acfb110f212
branches: trunk
changeset: 337300:9acfb110f212
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Apr 10 17:28:42 2015 +0000
description:
Use KASSERTMSG to show bad base/offset.
diffstat:
sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c954da0ba59a -r 9acfb110f212 sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c
--- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c Fri Apr 10 13:30:01 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c Fri Apr 10 17:28:42 2015 +0000
@@ -1613,8 +1613,12 @@
if (bo->mem.bus.is_iomem) {
paddr_t start, end, pa;
- KASSERT((bo->mem.bus.base & (PAGE_SIZE - 1)) == 0);
- KASSERT((bo->mem.bus.offset & (PAGE_SIZE - 1)) == 0);
+ KASSERTMSG((bo->mem.bus.base & (PAGE_SIZE - 1)) == 0,
+ "bo bus base addr not page-aligned: %lx",
+ bo->mem.bus.base);
+ KASSERTMSG((bo->mem.bus.offset & (PAGE_SIZE - 1)) == 0,
+ "bo bus offset not page-aligned: %lx",
+ bo->mem.bus.offset);
start = bo->mem.bus.base + bo->mem.bus.offset;
KASSERT((bo->mem.bus.size & (PAGE_SIZE - 1)) == 0);
end = start + bo->mem.bus.size;
Home |
Main Index |
Thread Index |
Old Index