From 323d76db47bf310bb0602daf89278a7e90f49c5e Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 30 Oct 2018 15:39:33 +0000 Subject: [PATCH] Make "nscd -t" work. Reviewed by: des@ MFC after: 2 weeks Sponsored by: Chalmers University of Technology Differential Revision: https://reviews.freebsd.org/D17563 --- usr.sbin/nscd/debug.c | 2 +- usr.sbin/nscd/debug.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/nscd/debug.c b/usr.sbin/nscd/debug.c index 48130b4a00d..2d2ea5b2ca4 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 e345637d4b3..862b902447c 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__)