diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c index f18d1426..80c62c58 100644 --- a/nouveau/nouveau.c +++ b/nouveau/nouveau.c @@ -46,7 +46,6 @@ #include "nvif/ioctl.h" #include "nvif/unpack.h" -#ifdef DEBUG drm_private uint32_t nouveau_debug = 0; static void @@ -58,7 +57,6 @@ debug_init(char *args) nouveau_debug = n; } } -#endif static int nouveau_object_ioctl(struct nouveau_object *obj, void *data, uint32_t size) @@ -327,9 +325,7 @@ nouveau_drm_new(int fd, struct nouveau_drm **pdrm) struct nouveau_drm *drm; drmVersionPtr ver; -#ifdef DEBUG debug_init(getenv("NOUVEAU_LIBDRM_DEBUG")); -#endif if (!(drm = calloc(1, sizeof(*drm)))) return -ENOMEM; diff --git a/nouveau/private.h b/nouveau/private.h index 034a958e..13cec3cd 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -9,17 +9,12 @@ #include "nouveau.h" -#ifdef DEBUG drm_private extern uint32_t nouveau_debug; #define dbg_on(lvl) (nouveau_debug & (1 << lvl)) #define dbg(lvl, fmt, args...) do { \ if (dbg_on((lvl))) \ fprintf(stderr, "nouveau: "fmt, ##args); \ } while(0) -#else -#define dbg_on(lvl) (0) -#define dbg(lvl, fmt, args...) -#endif #define err(fmt, args...) fprintf(stderr, "nouveau: "fmt, ##args) struct nouveau_client_kref {