aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2014-12-15 15:09:15 -0800
committerGil Pitney <gil.pitney@linaro.org>2014-12-15 15:09:15 -0800
commit92573c6df908d1845f28f0679ebc1ecefb9a7124 (patch)
treed9c7aacbcf9cfd1d77f1fdbdbc0f9947f818583f
parentb927c12690f147e7a0b96017dc8353663d7d49a9 (diff)
cpu.h: Allow printf() to be called from kernels for debugging.
Fix prototype so printf() can be called from kernels. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r--include/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cpu.h b/include/cpu.h
index c7c5976..383bcac 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -249,7 +249,7 @@ TERNARY_VEC_DECL(uint, uint, mad_sat)
TERNARY_VEC_DECL(long, long, mad_sat)
TERNARY_VEC_DECL(ulong, ulong, mad_sat)
-int printf(const char* _format, ...);
+int printf(__constant char* _format, ...);
void *memcpy(void *dst, const void * src, uint size);
_CLC_DECL size_t get_local_id (uint dim);