Makefile | 2 +- src/dbg.h | 4 ++-- src/nnn.c | 8 ++++---- diff --git a/Makefile b/Makefile index c830a26c822a7231846f9718f64a1f0ba34a8f98..645403839f67820898b13db345ab65e152848451 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ O_NOLOC := 1 endif ifeq ($(strip $(O_DEBUG)),1) - CPPFLAGS += -DDBGMODE + CPPFLAGS += -DDEBUG CFLAGS += -g endif diff --git a/src/dbg.h b/src/dbg.h index 1e50bddf0bb4c5968a646fc67d4939525f870c9e..4404c6a271afa6710febcda81b554560d2613b06 100644 --- a/src/dbg.h +++ b/src/dbg.h @@ -30,7 +30,7 @@ */ #pragma once -#ifdef DBGMODE +#ifdef DEBUG static int DEBUG_FD; static int xprintf(int fd, const char *fmt, ...) @@ -88,4 +88,4 @@ #define DPRINTF_D(x) #define DPRINTF_U(x) #define DPRINTF_S(x) #define DPRINTF_P(x) -#endif /* DBGMODE */ +#endif /* DEBUG */ diff --git a/src/nnn.c b/src/nnn.c index 78ee932d913b84de0ac8a8e0c07bd1c55729291b..6dd11066b49c215f3d0238623ec7795dbba5f4a2 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5259,7 +5259,7 @@ } static void populate(char *path, char *lastname) { -#ifdef DBGMODE +#ifdef DEBUG struct timespec ts1, ts2; clock_gettime(CLOCK_REALTIME, &ts1); /* Use CLOCK_MONOTONIC on FreeBSD */ @@ -5271,7 +5271,7 @@ return; ENTSORT(pdents, ndents, entrycmpfn); -#ifdef DBGMODE +#ifdef DEBUG clock_gettime(CLOCK_REALTIME, &ts2); DPRINTF_U(ts2.tv_nsec - ts1.tv_nsec); #endif @@ -7600,7 +7600,7 @@ unlink(fifopath); #endif if (g_state.pluginit) unlink(g_pipepath); -#ifdef DBGMODE +#ifdef DEBUG disabledbg(); #endif } @@ -7769,7 +7769,7 @@ if (env_opts_id == 0) env_opts_id = -1; } -#ifdef DBGMODE +#ifdef DEBUG enabledbg(); DPRINTF_S(VERSION); #endif