diff options
author | Robert Noland <rnoland@2hip.net> | 2009-03-16 00:35:18 -0500 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-03-16 00:35:18 -0500 |
commit | 44fec1a8e487a14e0221e32759cc16ce9fcd7b00 (patch) | |
tree | ba0ddb4a9c90f32d34f5897d2659d8835e1b3122 /bsd-core/drm_vm.c | |
parent | f8f49aa6ec10e281b08279143f2bd999df118147 (diff) |
FreeBSD: Improve the debug output of drm_mmap().
Diffstat (limited to 'bsd-core/drm_vm.c')
-rw-r--r-- | bsd-core/drm_vm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bsd-core/drm_vm.c b/bsd-core/drm_vm.c index 4bc6f46a..a7bee4b3 100644 --- a/bsd-core/drm_vm.c +++ b/bsd-core/drm_vm.c @@ -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))) { |