diff options
author | Marius Predut <[email protected]> | 2015-04-16 13:35:50 +0300 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-04-21 13:05:03 +0000 |
commit | d8b14a57a98f4bad6528eda8dd1406c15bdcce75 (patch) | |
tree | def1be4cd6a9139658b85a0cef4ab296474d1031 /src/mesa/drivers/dri/radeon/radeon_common.c | |
parent | ad5ae271e7514e35e97c58f032b2949e3eee62c3 (diff) |
radeon: replace __FUNCTION__ with __func__
Consistently just use C99's __func__ everywhere.
No functional changes.
Signed-off-by: Marius Predut <[email protected]>
Acked-by: Michel Dänzer <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_common.c')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c index 3bcc7f2c088..0ca526d2a02 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.c +++ b/src/mesa/drivers/dri/radeon/radeon_common.c @@ -167,7 +167,7 @@ uint32_t radeonGetAge(radeonContextPtr radeon) ret = drmCommandWriteRead(radeon->dri.fd, DRM_RADEON_GETPARAM, &gp, sizeof(gp)); if (ret) { - fprintf(stderr, "%s: drmRadeonGetParam: %d\n", __FUNCTION__, + fprintf(stderr, "%s: drmRadeonGetParam: %d\n", __func__, ret); exit(1); } @@ -342,7 +342,7 @@ void radeon_draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb) void radeonDrawBuffer( struct gl_context *ctx, GLenum mode ) { if (RADEON_DEBUG & RADEON_DRI) - fprintf(stderr, "%s %s\n", __FUNCTION__, + fprintf(stderr, "%s %s\n", __func__, _mesa_lookup_enum_by_nr( mode )); if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { @@ -531,7 +531,7 @@ static inline void radeonEmitAtoms(radeonContextPtr radeon, GLboolean emitAll) void radeonEmitState(radeonContextPtr radeon) { - radeon_print(RADEON_STATE, RADEON_NORMAL, "%s\n", __FUNCTION__); + radeon_print(RADEON_STATE, RADEON_NORMAL, "%s\n", __func__); if (radeon->vtbl.pre_emit_state) radeon->vtbl.pre_emit_state(radeon); @@ -562,7 +562,7 @@ void radeonFlush(struct gl_context *ctx) { radeonContextPtr radeon = RADEON_CONTEXT(ctx); if (RADEON_DEBUG & RADEON_IOCTL) - fprintf(stderr, "%s %d\n", __FUNCTION__, radeon->cmdbuf.cs->cdw); + fprintf(stderr, "%s %d\n", __func__, radeon->cmdbuf.cs->cdw); /* okay if we have no cmds in the buffer && we have no DMA flush && @@ -576,7 +576,7 @@ void radeonFlush(struct gl_context *ctx) radeon->dma.flush( ctx ); if (radeon->cmdbuf.cs->cdw) - rcommonFlushCmdBuf(radeon, __FUNCTION__); + rcommonFlushCmdBuf(radeon, __func__); flush_front: if (_mesa_is_winsys_fbo(ctx->DrawBuffer) && radeon->front_buffer_dirty) { @@ -635,7 +635,7 @@ int rcommonFlushCmdBufLocked(radeonContextPtr rmesa, const char *caller) rmesa->cmdbuf.flushing = 1; if (RADEON_DEBUG & RADEON_IOCTL) { - fprintf(stderr, "%s from %s\n", __FUNCTION__, caller); + fprintf(stderr, "%s from %s\n", __func__, caller); } radeonEmitQueryEnd(&rmesa->glCtx); |