]> err.no Git - varnish/commitdiff
Improve the INCOMPL() macro.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 12 Jul 2006 22:01:15 +0000 (22:01 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 12 Jul 2006 22:01:15 +0000 (22:01 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@462 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache.h

index 2de78ad7cb555c794cf31186fc4cf3a439595edc..897a17c9c9fbcb71473ed9e612760a1479f297ac 100644 (file)
@@ -277,7 +277,8 @@ void VSL(enum shmlogtag tag, unsigned id, const char *fmt, ...);
 #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