aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
diff options
context:
space:
mode:
authorMarius Predut <[email protected]>2015-04-16 13:35:50 +0300
committerEmil Velikov <[email protected]>2015-04-21 13:05:03 +0000
commitd8b14a57a98f4bad6528eda8dd1406c15bdcce75 (patch)
treedef1be4cd6a9139658b85a0cef4ab296474d1031 /src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
parentad5ae271e7514e35e97c58f032b2949e3eee62c3 (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_cmdbuf.h')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_cmdbuf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h b/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
index 5f454cbd001..da179a7e367 100644
--- a/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
+++ b/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
@@ -31,7 +31,7 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
* Prepare writing n dwords to the command buffer. Does not cause automatic
* state emits.
*/
-#define BEGIN_BATCH(n) rcommonBeginBatch(b_l_rmesa, n, __FILE__, __FUNCTION__, __LINE__)
+#define BEGIN_BATCH(n) rcommonBeginBatch(b_l_rmesa, n, __FILE__, __func__, __LINE__)
/**
* Write one dword to the command buffer.
@@ -49,7 +49,7 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
int __offset = (offset); \
if (0 && __offset) { \
fprintf(stderr, "(%s:%s:%d) offset : %d\n", \
- __FILE__, __FUNCTION__, __LINE__, __offset); \
+ __FILE__, __func__, __LINE__, __offset); \
} \
radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \
radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \
@@ -72,7 +72,7 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
*/
#define END_BATCH() \
do { \
- radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __FUNCTION__, __LINE__);\
+ radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __func__, __LINE__);\
} while(0)
/**