FreeBSD: Improve the debug output of drm_mmap().

main
Robert Noland 2009-03-16 00:35:18 -05:00
parent f8f49aa6ec
commit 44fec1a8e4
1 changed files with 6 additions and 1 deletions

View File

@ -83,8 +83,13 @@ int drm_mmap(struct cdev *kdev, vm_offset_t offset, vm_paddr_t *paddr,
}
if (map == NULL) {
DRM_DEBUG("Can't find map, requested offset = %016lx\n",
offset);
TAILQ_FOREACH(map, &dev->maplist, link) {
DRM_DEBUG("map offset = %016lx, handle = %016lx\n",
map->offset, (unsigned long)map->handle);
}
DRM_UNLOCK();
DRM_DEBUG("can't find map\n");
return -1;
}
if (((map->flags&_DRM_RESTRICTED) && !DRM_SUSER(DRM_CURPROC))) {