[master] 01b1967 Now that all VSL have descriptions, make the lack thereof an assert.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Feb 24 22:40:38 CET 2015
commit 01b1967de9c25782f750d92cb1b17d9aa211f6eb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Feb 24 20:53:55 2015 +0000
Now that all VSL have descriptions, make the lack thereof an assert.
diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 5a8d4ca..839cc6f 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -75,6 +75,7 @@ mgt_sltm(const char *tag, const char *sdesc, const char *ldesc)
{
int i;
+ assert(sdesc != NULL || ldesc != NULL);
printf("\n%s\n", tag);
i = strlen(tag);
printf("%*.*s\n\n", i, i, "------------------------------------");
@@ -82,9 +83,6 @@ mgt_sltm(const char *tag, const char *sdesc, const char *ldesc)
printf("%s\n", ldesc);
else if (*sdesc != '\0')
printf("%s\n", sdesc);
- else
- printf("%s\n", "(description not yet written)");
-
}
/*lint -e{506} constant value boolean */
More information about the varnish-commit
mailing list