[4.1] 657e0ea Display the WRONG() message in VAS_Fail_default
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 14 15:15:00 CET 2016
commit 657e0ea2b5d29f6d81e9f8d2c0caa4733c85d316
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Jan 5 15:00:03 2016 +0100
Display the WRONG() message in VAS_Fail_default
diff --git a/lib/libvarnish/vas.c b/lib/libvarnish/vas.c
index 2d810d2..0c857a0 100644
--- a/lib/libvarnish/vas.c
+++ b/lib/libvarnish/vas.c
@@ -1,6 +1,6 @@
/*-
* Copyright (c) 2006 Verdens Gang AS
- * Copyright (c) 2006-2011 Varnish Software AS
+ * Copyright (c) 2006-2016 Varnish Software AS
* All rights reserved.
*
* Author: Poul-Henning Kamp <phk at phk.freebsd.dk>
@@ -46,7 +46,7 @@ VAS_Fail_default(const char *func, const char *file, int line,
if (kind == VAS_MISSING) {
fprintf(stderr,
- "Missing errorhandling code in %s(), %s line %d:\n"
+ "Missing error handling code in %s(), %s line %d:\n"
" Condition(%s) not true.\n",
func, file, line, cond);
} else if (kind == VAS_INCOMPLETE) {
@@ -55,8 +55,8 @@ VAS_Fail_default(const char *func, const char *file, int line,
func, file, line);
} else if (kind == VAS_WRONG) {
fprintf(stderr,
- "Wrong turn in %s(), %s line %d:\n",
- func, file, line);
+ "Wrong turn in %s(), %s line %d: %s\n",
+ func, file, line, cond);
} else {
fprintf(stderr,
"Assert error in %s(), %s line %d:\n"
More information about the varnish-commit
mailing list