r462 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 13 00:01:15 CEST 2006
Author: phk
Date: 2006-07-13 00:01:15 +0200 (Thu, 13 Jul 2006)
New Revision: 462
Modified:
trunk/varnish-cache/bin/varnishd/cache.h
Log:
Improve the INCOMPL() macro.
Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h 2006-07-12 20:21:47 UTC (rev 461)
+++ trunk/varnish-cache/bin/varnishd/cache.h 2006-07-12 22:01:15 UTC (rev 462)
@@ -277,7 +277,8 @@
#define HERE() VSL(SLT_Debug, 0, "HERE: %s(%d)", __func__, __LINE__)
#define INCOMPL() do { \
VSL(SLT_Debug, 0, "INCOMPLETE AT: %s(%d)", __func__, __LINE__); \
- assert(__LINE__ == 0); \
+ fprintf(stderr,"INCOMPLETE AT: %s(%d)\n", (const char *)__func__, __LINE__); \
+ abort(); \
} while (0)
#endif
More information about the varnish-commit
mailing list