[Openvas-commits] r5702 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Oct 23 23:45:31 CEST 2009
Author: mattm
Date: 2009-10-23 23:45:30 +0200 (Fri, 23 Oct 2009)
New Revision: 5702
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/omp.c
Log:
* src/omp.c (print_report_latex): Skip Log and Debug messages.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2009-10-23 21:38:16 UTC (rev 5701)
+++ trunk/openvas-manager/ChangeLog 2009-10-23 21:45:30 UTC (rev 5702)
@@ -1,3 +1,7 @@
+2009-10-23 Matthew Mundell <matthew.mundell at intevation.de>
+
+ * src/omp.c (print_report_latex): Skip Log and Debug messages.
+
2009-10-23 Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
* src/omp.c (latex_severity_heading, print_report_latex): Use
Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c 2009-10-23 21:38:16 UTC (rev 5701)
+++ trunk/openvas-manager/src/omp.c 2009-10-23 21:45:30 UTC (rev 5702)
@@ -2379,6 +2379,10 @@
* before less severe). */
while (next (&results))
{
+ const char *type = result_iterator_type (&results);
+ if (strcmp (type, "Log Message") == 0
+ || strcmp (type, "Debug Message") == 0)
+ continue;
if (last_port
&& (strcmp (last_port, result_iterator_port (&results)) == 0))
continue;
@@ -2414,7 +2418,12 @@
{
gchar *descr;
const char *severity;
+ const char *type = result_iterator_type (&results);
+ if (strcmp (type, "Log Message") == 0
+ || strcmp (type, "Debug Message") == 0)
+ continue;
+
descr = latex_escape_text (result_iterator_descr (&results));
if (last_port == NULL
@@ -5204,6 +5213,10 @@
("<family>"
"<name>%s</name>"
"<selected_count>%i</selected_count>"
+ /**
+ * @todo This is total NVTs in family, whereas in
+ * config above it's total number of selected NVTs.
+ */
"<nvt_count>%i</nvt_count>"
"<growing>%i</growing>"
"</family>",
More information about the Openvas-commits
mailing list