]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix debug line number
authorKlzXS <klzx+github@klzx.cf>
Tue, 29 Jun 2021 17:49:59 +0000 (19:49 +0200)
committerKlzXS <klzx+github@klzx.cf>
Tue, 29 Jun 2021 17:49:59 +0000 (19:49 +0200)
src/dbg.h

index 4404c6a271afa6710febcda81b554560d2613b06..6b40cd4a6eb6f15b07e71c6487cce66d54d7ee42 100644 (file)
--- 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)