Commit 06a23d75 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Don't list unused log record tags in the documentation.

If the short description of a log record contains the string
"(unused)" it will not be listed in the documentation.
parent 45028701
......@@ -192,7 +192,7 @@ SLTM(Hash, "Value added to hash", "")
SLTM(Backend_health, "Backend health check", "")
SLTM(VCL_Debug, "Unused", "")
SLTM(VCL_Debug, "(unused)", "")
SLTM(VCL_Log, "Log statement from VCL", "")
SLTM(VCL_Error, "", "")
......
......@@ -98,6 +98,11 @@ main(int argc, char *argv[])
for (i = 0; i < SLT__MAX; i++) {
if (ptags[i]->name == NULL || !strcmp(ptags[i]->name, ""))
continue;
if (ptags[i]->sdesc != NULL &&
strstr(ptags[i]->sdesc, "(unused)"))
/* Don't list tags where the short description
contains the string "(unused)" */
continue;
printf("%s", ptags[i]->name);
if (ptags[i]->sdesc != NULL && strcmp(ptags[i]->sdesc, ""))
printf(" - %s", ptags[i]->sdesc);
......
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