From 9ebec3abbb483692bfa747d874533e5e2080235b Mon Sep 17 00:00:00 2001 From: teodor Date: Fri, 4 Jul 2008 15:06:12 +0000 Subject: [PATCH] Eliminate warinig. --- tlog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tlog.h b/tlog.h index dbe6efd..1cec446 100644 --- a/tlog.h +++ b/tlog.h @@ -50,9 +50,9 @@ void tlog(u_int32_t level,const char *format, ...); void closetlog(); #ifdef ASSERT_CORE -#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, (__func__) ? __func__ : "UNKNOWN", __FILE__, __LINE__), closetlog(), abort()) ) +#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, __func__, __FILE__, __LINE__), closetlog(), abort()) ) #else -#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT|TL_EXIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, (__func__) ? __func__ : "UNKNOWN", __FILE__, __LINE__)) ) +#define tassert(e) ( (e) ? (void)0 : (tlog(TL_CRIT|TL_EXIT, "Assertion failed: %s, function %s, file %s, line %d.", #e, __func__, __FILE__, __LINE__)) ) #endif #endif -- 2.46.1