aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nscd
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2018-10-30 15:39:33 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2018-10-30 15:39:33 +0000
commit323d76db47bf310bb0602daf89278a7e90f49c5e (patch)
tree479d9e53c1dce6d079a9580a259226caa98e5b26 /usr.sbin/nscd
parentfcbb889fdb3b784c57a69af58d7ee678db2fc88d (diff)
downloadsrc-323d76db47bf310bb0602daf89278a7e90f49c5e.tar.gz
src-323d76db47bf310bb0602daf89278a7e90f49c5e.zip
Notes
Diffstat (limited to 'usr.sbin/nscd')
-rw-r--r--usr.sbin/nscd/debug.c2
-rw-r--r--usr.sbin/nscd/debug.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/nscd/debug.c b/usr.sbin/nscd/debug.c
index 48130b4a00d0..2d2ea5b2ca44 100644
--- a/usr.sbin/nscd/debug.c
+++ b/usr.sbin/nscd/debug.c
@@ -131,7 +131,7 @@ nscd_trace_out(const char *s, const char *f, int l)
for (i = 0; i < trace_level; ++i)
printf("\t");
- printf("<= %s\n", s);
+ printf("<= %s, %s: %d\n", s, f, l);
}
}
diff --git a/usr.sbin/nscd/debug.h b/usr.sbin/nscd/debug.h
index e345637d4b38..862b902447c7 100644
--- a/usr.sbin/nscd/debug.h
+++ b/usr.sbin/nscd/debug.h
@@ -31,8 +31,7 @@
#define TRACE_WANTED 32
-/* #ifndef NDEBUG */
-#if 0
+#ifndef NDEBUG
#define TRACE_IN(x) nscd_trace_in(#x, __FILE__, __LINE__)
#define TRACE_POINT() nscd_trace_point(__FILE__, __LINE__)
#define TRACE_MSG(x) nscd_trace_msg(x, __FILE__, __LINE__)