FreeBSD: Fix the printing of maps on amd64/i386 to be consistent
authorRobert Noland <rnoland@2hip.net>
Mon, 9 Mar 2009 18:37:57 +0000 (13:37 -0500)
committerRobert Noland <rnoland@2hip.net>
Mon, 9 Mar 2009 18:37:57 +0000 (13:37 -0500)
bsd-core/drm_sysctl.c

index f0227aa7159a8d8c6303e5e73b124ed5d815631e..608169de8380a4e7bb1679b876fea498a7dfb4ca 100644 (file)
@@ -182,8 +182,8 @@ static int drm_vm_info DRM_SYSCTL_HANDLER_ARGS
 
        DRM_UNLOCK();
 
-       DRM_SYSCTL_PRINT("\nslot         offset       size type flags    "
-                        "address mtrr\n");
+       DRM_SYSCTL_PRINT("\nslot offset         size       "
+           "type flags address            mtrr\n");
 
        for (i = 0; i < mapcount; i++) {
                map = &tempmaps[i];
@@ -199,7 +199,7 @@ static int drm_vm_info DRM_SYSCTL_HANDLER_ARGS
                        yesno = "yes";
 
                DRM_SYSCTL_PRINT(
-                   "%4d 0x%08lx 0x%08lx %4.4s  0x%02x 0x%08lx %s\n", i,
+                   "%4d 0x%016lx 0x%08lx %4.4s  0x%02x 0x%016lx %s\n", i,
                    map->offset, map->size, type, map->flags,
                    (unsigned long)map->handle, yesno);
        }