summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2002-05-31 03:49:53 +0000
committerEric Anholt <anholt@freebsd.org>2002-05-31 03:49:53 +0000
commitfd4d82a49696e5b88527f23b5bd3becead6ab3bf (patch)
tree0782ac42f7ea0c8a3309a0c185b0f172ae3cf421
parent76b60581df1818ad0c02b161bf267e656d9f3044 (diff)
DRM_DEBUG=1 warnings cleanup
-rw-r--r--bsd/mga_state.c8
-rw-r--r--bsd/radeon_state.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/bsd/mga_state.c b/bsd/mga_state.c
index a0bd404a..a64fe7c7 100644
--- a/bsd/mga_state.c
+++ b/bsd/mga_state.c
@@ -523,7 +523,7 @@ static void mga_dma_dispatch_clear( drm_device_t *dev,
int nbox = sarea_priv->nbox;
int i;
DMA_LOCALS;
- DRM_DEBUG( __FUNCTION__ ":\n" );
+ DRM_DEBUG( "%s:\n", __FUNCTION__ );
BEGIN_DMA( 1 );
@@ -617,7 +617,7 @@ static void mga_dma_dispatch_swap( drm_device_t *dev )
int nbox = sarea_priv->nbox;
int i;
DMA_LOCALS;
- DRM_DEBUG( __FUNCTION__ ":\n" );
+ DRM_DEBUG( "%s:\n", __FUNCTION__ );
sarea_priv->last_frame.head = dev_priv->prim.tail;
sarea_priv->last_frame.wrap = dev_priv->prim.last_wrap;
@@ -826,7 +826,7 @@ static void mga_dma_dispatch_blit( drm_device_t *dev,
int nbox = sarea_priv->nbox;
u32 scandir = 0, i;
DMA_LOCALS;
- DRM_DEBUG( __FUNCTION__ ":\n" );
+ DRM_DEBUG( "%s:\n", __FUNCTION__ );
BEGIN_DMA( 4 + nbox );
@@ -1012,7 +1012,7 @@ int mga_dma_iload( DRM_OS_IOCTL )
drm_buf_t *buf;
drm_mga_buf_priv_t *buf_priv;
drm_mga_iload_t iload;
- DRM_DEBUG( __FUNCTION__ ":\n" );
+ DRM_DEBUG( "%s:\n", __FUNCTION__ );
LOCK_TEST_WITH_RETURN( dev );
diff --git a/bsd/radeon_state.c b/bsd/radeon_state.c
index cbb9d1f6..8fc28001 100644
--- a/bsd/radeon_state.c
+++ b/bsd/radeon_state.c
@@ -445,7 +445,7 @@ static void radeon_cp_dispatch_clear( drm_device_t *dev,
u32 rb3d_cntl = 0, rb3d_stencilrefmask= 0;
int i;
RING_LOCALS;
- DRM_DEBUG( __FUNCTION__": flags = 0x%x\n", flags );
+ DRM_DEBUG( "%s: flags = 0x%x\n", __FUNCTION__, flags );
if ( dev_priv->page_flipping && dev_priv->current_page == 1 ) {
unsigned int tmp = flags;
@@ -741,8 +741,8 @@ static void radeon_cp_dispatch_vertex( drm_device_t *dev,
int i = 0;
RING_LOCALS;
- DRM_DEBUG( __FUNCTION__": nbox=%d %d..%d prim %x nvert %d\n",
- sarea_priv->nbox, prim->start, prim->finish,
+ DRM_DEBUG( "%s: nbox=%d %d..%d prim %x nvert %d\n",
+ __FUNCTION__, sarea_priv->nbox, prim->start, prim->finish,
prim->prim, numverts );
buf_priv->dispatched = 1;
@@ -1483,8 +1483,8 @@ int radeon_cp_vertex2( DRM_OS_IOCTL )
DRM_OS_KRNFROMUSR(vertex, (drm_radeon_vertex2_t *)data, sizeof(vertex));
- DRM_DEBUG( __FUNCTION__": pid=%d index=%d discard=%d\n",
- current->pid, vertex.idx, vertex.discard );
+ DRM_DEBUG( "%s: pid=%d index=%d discard=%d\n", __FUNCTION__,
+ DRM_OS_CURRENTPID, vertex.idx, vertex.discard );
if ( vertex.idx < 0 || vertex.idx >= dma->buf_count ) {
DRM_ERROR( "buffer index %d (of %d max)\n",