Eliminate warinig.
[tedtools.git] / tlog.h
diff --git a/tlog.h b/tlog.h
index dbe6efd..1cec446 100644 (file)
--- 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