Make "nscd -t" work.

Reviewed by:	des@
MFC after:	2 weeks
Sponsored by:	Chalmers University of Technology
Differential Revision:	https://reviews.freebsd.org/D17563
This commit is contained in:
Edward Tomasz Napierala 2018-10-30 15:39:33 +00:00
parent fcbb889fdb
commit 323d76db47
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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__)