cache添加宏定义CACHE_DEBUG_SWITCH打印debug信息

This commit is contained in:
zhangchengwei
2018-10-19 10:03:14 +08:00
parent 2f6be2c864
commit 20346477db
2 changed files with 11 additions and 0 deletions

View File

@@ -6,6 +6,12 @@
#define MESA_HANDLE_RUNTIME_LOGV2(handle, lv, fmt, args...) \
MESA_handle_runtime_log((handle), (lv), "TANGO_CACHE", "%s:%d, " fmt, __FILE__, __LINE__, ##args)
#ifdef CACHE_DEBUG_SWITCH
#define DBG_CACHE(msg...) do{printf(msg);}while(0)
#else
#define DBG_CACHE(msg...)
#endif
int Base64_EncodeBlock(const unsigned char *in, int inl, unsigned char *out);
int Base64_DecodeBlock(const unsigned char *in, int inl, unsigned char *out, int outsize);