diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-03-17 03:50:35 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-03-17 03:50:35 +0000 |
commit | 224f04f590ec44f9783e92ad0b2a564eba6f422c (patch) | |
tree | 1d18649779201f55417d4a432efbe1d436cc6ace /sys/dev/drm | |
parent | 9993b42fe9ce8e598f6d785444ac1d15b4276d5d (diff) | |
download | FreeBSD-src-224f04f590ec44f9783e92ad0b2a564eba6f422c.zip FreeBSD-src-224f04f590ec44f9783e92ad0b2a564eba6f422c.tar.gz |
Improve the debugging output of drm_mmap
MFC after: 3 days
Diffstat (limited to 'sys/dev/drm')
-rw-r--r-- | sys/dev/drm/drm_vm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index e00684b..a61898a 100644 --- a/sys/dev/drm/drm_vm.c +++ b/sys/dev/drm/drm_vm.c @@ -86,8 +86,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))) { |