nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2fda5c78e0efc55614d209c708283c29ad2087e4
parent 1729a10ef427c5e3bee18164fec90076662f58e1
Author: PiƱa Colada <engineerarun@gmail.com>
Date:   Tue, 29 Jun 2021 23:59:30 +0530

Merge pull request #1087 from KlzXS/debug

Fix debug line number
Diffstat:
Msrc/dbg.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/dbg.h b/src/dbg.h @@ -79,10 +79,10 @@ static void disabledbg(void) #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) -#define DPRINTF_D(x) xprintf(DEBUG_FD, "ln " TOSTRING(__line__) ": " #x "=%d\n", x) -#define DPRINTF_U(x) xprintf(DEBUG_FD, "ln " TOSTRING(__line__) ": " #x "=%u\n", x) -#define DPRINTF_S(x) xprintf(DEBUG_FD, "ln " TOSTRING(__line__) ": " #x "=%s\n", x) -#define DPRINTF_P(x) xprintf(DEBUG_FD, "ln " TOSTRING(__line__) ": " #x "=%p\n", x) +#define DPRINTF_D(x) xprintf(DEBUG_FD, "ln " TOSTRING(__LINE__) ": " #x "=%d\n", x) +#define DPRINTF_U(x) xprintf(DEBUG_FD, "ln " TOSTRING(__LINE__) ": " #x "=%u\n", x) +#define DPRINTF_S(x) xprintf(DEBUG_FD, "ln " TOSTRING(__LINE__) ": " #x "=%s\n", x) +#define DPRINTF_P(x) xprintf(DEBUG_FD, "ln " TOSTRING(__LINE__) ": " #x "=%p\n", x) #else #define DPRINTF_D(x) #define DPRINTF_U(x)