[sheepdog] [PATCH 2/6] util: don't print out unnecesssary line and function name.

Liu Yuan namei.unix at gmail.com
Sun Jan 27 08:43:43 CET 2013


From: Liu Yuan <tailai.ly at taobao.com>

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 include/util.h |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/util.h b/include/util.h
index fe1c9b8..eb1b9a6 100644
--- a/include/util.h
+++ b/include/util.h
@@ -95,10 +95,7 @@ void untrim_zero_sectors(void *buf, uint64_t offset, uint32_t len,
 #ifndef NDEBUG
 
 #define assert(expr) ((expr) ?						\
-			(void)0 :					\
-			panic("assert: %s:%d: %s: "			\
-				"Asserting `%s' failed.\n",		\
-				__FILE__, __LINE__, __func__, #expr))
+			(void)0 : panic("Asserting `%s' failed.\n", #expr))
 
 #else
 
-- 
1.7.9.5




More information about the sheepdog mailing list