From: Eric Anholt Date: Sat, 29 Mar 2003 03:30:21 +0000 (+0000) Subject: buf->filp is a pointer, so make printf format args be %p not %d X-Git-Tag: submit/1.0/20121108.012404~2397 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e27d2f8c7cacf1e9994e9030c7ebb15dc4f4efff;p=profile%2Fivi%2Flibdrm.git buf->filp is a pointer, so make printf format args be %p not %d --- diff --git a/shared-core/r128_state.c b/shared-core/r128_state.c index 12c4a0e..8b9e97c 100644 --- a/shared-core/r128_state.c +++ b/shared-core/r128_state.c @@ -831,7 +831,7 @@ static int r128_cce_dispatch_blit( DRMFILE filp, buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } @@ -1330,7 +1330,7 @@ int r128_cce_vertex( DRM_IOCTL_ARGS ) buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } @@ -1389,7 +1389,7 @@ int r128_cce_indices( DRM_IOCTL_ARGS ) buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } @@ -1531,7 +1531,7 @@ int r128_cce_indirect( DRM_IOCTL_ARGS ) buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } diff --git a/shared/r128_state.c b/shared/r128_state.c index 12c4a0e..8b9e97c 100644 --- a/shared/r128_state.c +++ b/shared/r128_state.c @@ -831,7 +831,7 @@ static int r128_cce_dispatch_blit( DRMFILE filp, buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } @@ -1330,7 +1330,7 @@ int r128_cce_vertex( DRM_IOCTL_ARGS ) buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } @@ -1389,7 +1389,7 @@ int r128_cce_indices( DRM_IOCTL_ARGS ) buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); } @@ -1531,7 +1531,7 @@ int r128_cce_indirect( DRM_IOCTL_ARGS ) buf_priv = buf->dev_private; if ( buf->filp != filp ) { - DRM_ERROR( "process %d using buffer owned by %d\n", + DRM_ERROR( "process %d using buffer owned by %p\n", DRM_CURRENTPID, buf->filp ); return DRM_ERR(EINVAL); }