[master] 3220a17 Display the WRONG() message in VAS_Fail_default

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Jan 8 11:53:07 CET 2016


commit 3220a178d1379e19de8f15b358328fa2bdbe979e
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