aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbg.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-09 22:20:46 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-09 22:20:46 +0530
commit6fcc6834ff98651a9601b2e307fc9ae56a3b4b6f (patch)
tree2483a29c4d5f74d354dd8c31a5c716978ee839bc /src/dbg.h
parent21f9a713dca8454e7fc636f815dcda5725801d10 (diff)
downloadnnn-6fcc6834ff98651a9601b2e307fc9ae56a3b4b6f.tar.gz
Show symlink even if target cannot be stat-ed
Diffstat (limited to 'src/dbg.h')
-rw-r--r--src/dbg.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dbg.h b/src/dbg.h
index 7bd757a..28f4118 100644
--- a/src/dbg.h
+++ b/src/dbg.h
@@ -76,10 +76,10 @@ static void disabledbg(void)
close(DEBUG_FD);
}
-#define DPRINTF_D(x) xprintf(DEBUG_FD, #x "=%d\n", x)
-#define DPRINTF_U(x) xprintf(DEBUG_FD, #x "=%u\n", x)
-#define DPRINTF_S(x) xprintf(DEBUG_FD, #x "=%s\n", x)
-#define DPRINTF_P(x) xprintf(DEBUG_FD, #x "=%p\n", x)
+#define DPRINTF_D(x) xprintf(DEBUG_FD, #x "=%d [ln %d]\n", x, __LINE__)
+#define DPRINTF_U(x) xprintf(DEBUG_FD, #x "=%u [ln %d]\n", x, __LINE__)
+#define DPRINTF_S(x) xprintf(DEBUG_FD, #x "=%s [ln %d]\n", x, __LINE__)
+#define DPRINTF_P(x) xprintf(DEBUG_FD, #x "=%p [ln %d]\n", x, __LINE__)
#else
#define DPRINTF_D(x)
#define DPRINTF_U(x)