summaryrefslogtreecommitdiffstats
path: root/src/etnaviv/drm/etnaviv_priv.h
diff options
context:
space:
mode:
authorGuido Günther <[email protected]>2019-05-31 14:35:08 +0200
committerGuido Günther <[email protected]>2019-06-05 08:58:05 +0000
commit22fa1c95ff91c9c0517ec43e352875c7fd794062 (patch)
treebeac2b7b58aa994277357074cac7d8376343b532 /src/etnaviv/drm/etnaviv_priv.h
parentc93007a6186fdcda68ac0738afe989e24936a496 (diff)
entaviv: drm: Don't use drmMsg()
Signed-off-by: Guido Günther <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/etnaviv/drm/etnaviv_priv.h')
-rw-r--r--src/etnaviv/drm/etnaviv_priv.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/etnaviv/drm/etnaviv_priv.h b/src/etnaviv/drm/etnaviv_priv.h
index 027471bfd3d..89449a2c978 100644
--- a/src/etnaviv/drm/etnaviv_priv.h
+++ b/src/etnaviv/drm/etnaviv_priv.h
@@ -43,6 +43,7 @@
#include "util/list.h"
#include "util/macros.h"
#include "util/u_atomic.h"
+#include "util/u_debug.h"
#include "etnaviv_drmif.h"
#include "etnaviv_drm.h"
@@ -178,19 +179,19 @@ struct etna_perfmon_signal
#define ALIGN(v,a) (((v) + (a) - 1) & ~((a) - 1))
-#define enable_debug 1 /* TODO make dynamic */
+#define enable_debug 0 /* TODO make dynamic */
#define INFO_MSG(fmt, ...) \
- do { drmMsg("[I] "fmt " (%s:%d)\n", \
+ do { debug_printf("[I] "fmt " (%s:%d)\n", \
##__VA_ARGS__, __FUNCTION__, __LINE__); } while (0)
#define DEBUG_MSG(fmt, ...) \
- do if (enable_debug) { drmMsg("[D] "fmt " (%s:%d)\n", \
+ do if (enable_debug) { debug_printf("[D] "fmt " (%s:%d)\n", \
##__VA_ARGS__, __FUNCTION__, __LINE__); } while (0)
#define WARN_MSG(fmt, ...) \
- do { drmMsg("[W] "fmt " (%s:%d)\n", \
+ do { debug_printf("[W] "fmt " (%s:%d)\n", \
##__VA_ARGS__, __FUNCTION__, __LINE__); } while (0)
#define ERROR_MSG(fmt, ...) \
- do { drmMsg("[E] " fmt " (%s:%d)\n", \
+ do { debug_printf("[E] " fmt " (%s:%d)\n", \
##__VA_ARGS__, __FUNCTION__, __LINE__); } while (0)
#define VOID2U64(x) ((uint64_t)(unsigned long)(x))