summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-09-07 23:56:20 +0000
committerEric Anholt <anholt@freebsd.org>2003-09-07 23:56:20 +0000
commit4d6d3572029414419289fd512416effb9a9ad832 (patch)
treea457cf99ac58d7b2950f887f7caa1af672a80322
parent6f563cd513bfcd35643ebc4f0d5c58f0193cc163 (diff)
Correct format in debug printfs (free is a pointer, not an int).
-rw-r--r--shared-core/sis_mm.c4
-rw-r--r--shared/sis_mm.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/shared-core/sis_mm.c b/shared-core/sis_mm.c
index 46cc0efa..5b4ea1d0 100644
--- a/shared-core/sis_mm.c
+++ b/shared-core/sis_mm.c
@@ -229,7 +229,7 @@ int sis_fb_free( DRM_IOCTL_ARGS )
return DRM_ERR(EINVAL);
mmFreeMem((PMemBlock)fb.free);
- DRM_DEBUG("free fb, free = %d\n", fb.free);
+ DRM_DEBUG("free fb, free = 0x%lx\n", fb.free);
return 0;
}
@@ -318,7 +318,7 @@ int sis_ioctl_agp_free( DRM_IOCTL_ARGS )
if (!del_alloc_set(agp.context, AGP_TYPE, agp.free))
return DRM_ERR(EINVAL);
- DRM_DEBUG("free agp, free = %d\n", agp.free);
+ DRM_DEBUG("free agp, free = 0x%lx\n", agp.free);
return 0;
}
diff --git a/shared/sis_mm.c b/shared/sis_mm.c
index 46cc0efa..5b4ea1d0 100644
--- a/shared/sis_mm.c
+++ b/shared/sis_mm.c
@@ -229,7 +229,7 @@ int sis_fb_free( DRM_IOCTL_ARGS )
return DRM_ERR(EINVAL);
mmFreeMem((PMemBlock)fb.free);
- DRM_DEBUG("free fb, free = %d\n", fb.free);
+ DRM_DEBUG("free fb, free = 0x%lx\n", fb.free);
return 0;
}
@@ -318,7 +318,7 @@ int sis_ioctl_agp_free( DRM_IOCTL_ARGS )
if (!del_alloc_set(agp.context, AGP_TYPE, agp.free))
return DRM_ERR(EINVAL);
- DRM_DEBUG("free agp, free = %d\n", agp.free);
+ DRM_DEBUG("free agp, free = 0x%lx\n", agp.free);
return 0;
}