libeplayer3-arm: debug issue shortened

This commit is contained in:
max_10
2019-01-22 04:15:51 +01:00
committed by Thilo Graf
parent 72367605fc
commit d8b3a2d5b4

View File

@@ -1,6 +1,10 @@
#include <stdio.h> #include <stdio.h>
#define log_error(fmt, x...) do { printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x); } while (0) #include <string.h>
#define log_printf(maxlevel, level, fmt, x...) do { if (maxlevel >= level) printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x); } while (0)
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define log_error(fmt, x...) do { printf("[%s:%s] " fmt, __FILENAME__, __FUNCTION__, ## x); } while (0)
#define log_printf(maxlevel, level, fmt, x...) do { if (maxlevel >= level) printf("[%s:%s] " fmt, __FILENAME__, __FUNCTION__, ## x); } while (0)
/******************************************* /*******************************************