#include <ttrace.h>
+#define TTRACE_LOG_BUF_SIZE 500
+
static inline void _ttrace_append_domain(const char *name, const char *data)
{
- char buf[500];
+ char buf[TTRACE_LOG_BUF_SIZE];
if (data)
{
- sprintf(buf,"%s::%s", name,data);
+ snprintf(buf, TTRACE_LOG_BUF_SIZE, "%s::%s", name,data);
traceBegin(TTRACE_TAG_EFL, buf);
}
else
static inline void _vtune_append_domain(const char *name, const char *data)
{
- char buf[500];
+ char buf[TTRACE_LOG_BUF_SIZE];
if (!_vtune_efl_domain) _vtune_efl_domain = __itt_domain_create("EFL");
if (data)
- sprintf(buf,"%s::%s", name,data);
+ snprintf(buf, TTRACE_LOG_BUF_SIZE, "%s::%s", name,data);
else
- sprintf(buf,"%s", name);
+ snprintf(buf, TTRACE_LOG_BUF_SIZE, "%s", name);
__itt_task_begin(_vtune_efl_domain, __itt_null, __itt_null,
__itt_string_handle_create(buf));
#define traceFrameEnd()
-#endif
\ No newline at end of file
+#endif