Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2009 03:50:36 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189914 - head/sys/dev/drm
Message-ID:  <200903170350.n2H3oah2080590@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rnoland
Date: Tue Mar 17 03:50:35 2009
New Revision: 189914
URL: http://svn.freebsd.org/changeset/base/189914

Log:
  Improve the debugging output of drm_mmap
  
  MFC after:	3 days

Modified:
  head/sys/dev/drm/drm_vm.c

Modified: head/sys/dev/drm/drm_vm.c
==============================================================================
--- head/sys/dev/drm/drm_vm.c	Tue Mar 17 03:49:24 2009	(r189913)
+++ head/sys/dev/drm/drm_vm.c	Tue Mar 17 03:50:35 2009	(r189914)
@@ -86,8 +86,13 @@ int drm_mmap(struct cdev *kdev, vm_offse
 	}
 
 	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))) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903170350.n2H3oah2080590>