svn commit: r190134 - in stable/7/sys: . contrib/pf dev/ath/ath_hal
dev/cxgb dev/drm
Robert Noland
rnoland at FreeBSD.org
Thu Mar 19 22:50:43 PDT 2009
Author: rnoland
Date: Fri Mar 20 05:50:42 2009
New Revision: 190134
URL: http://svn.freebsd.org/changeset/base/190134
Log:
Merge 189914,189916
Improve the debugging output of drm_mmap
Cast to (unsigned long) to make printf happy on i386
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/dev/drm/drm_vm.c
Modified: stable/7/sys/dev/drm/drm_vm.c
==============================================================================
--- stable/7/sys/dev/drm/drm_vm.c Fri Mar 20 05:47:49 2009 (r190133)
+++ stable/7/sys/dev/drm/drm_vm.c Fri Mar 20 05:50:42 2009 (r190134)
@@ -86,8 +86,14 @@ int drm_mmap(struct cdev *kdev, vm_offse
}
if (map == NULL) {
+ DRM_DEBUG("Can't find map, requested offset = %016lx\n",
+ (unsigned long)offset);
+ TAILQ_FOREACH(map, &dev->maplist, link) {
+ DRM_DEBUG("map offset = %016lx, handle = %016lx\n",
+ (unsigned long)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))) {
More information about the svn-src-stable
mailing list