Commit 3220a178 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Display the WRONG() message in VAS_Fail_default

parent ac6cf0fd
/*- /*-
* Copyright (c) 2006 Verdens Gang AS * Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2011 Varnish Software AS * Copyright (c) 2006-2016 Varnish Software AS
* All rights reserved. * All rights reserved.
* *
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk> * Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
...@@ -46,7 +46,7 @@ VAS_Fail_default(const char *func, const char *file, int line, ...@@ -46,7 +46,7 @@ VAS_Fail_default(const char *func, const char *file, int line,
if (kind == VAS_MISSING) { if (kind == VAS_MISSING) {
fprintf(stderr, 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", " Condition(%s) not true.\n",
func, file, line, cond); func, file, line, cond);
} else if (kind == VAS_INCOMPLETE) { } else if (kind == VAS_INCOMPLETE) {
...@@ -55,8 +55,8 @@ VAS_Fail_default(const char *func, const char *file, int line, ...@@ -55,8 +55,8 @@ VAS_Fail_default(const char *func, const char *file, int line,
func, file, line); func, file, line);
} else if (kind == VAS_WRONG) { } else if (kind == VAS_WRONG) {
fprintf(stderr, fprintf(stderr,
"Wrong turn in %s(), %s line %d:\n", "Wrong turn in %s(), %s line %d: %s\n",
func, file, line); func, file, line, cond);
} else { } else {
fprintf(stderr, fprintf(stderr,
"Assert error in %s(), %s line %d:\n" "Assert error in %s(), %s line %d:\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment