[Openvas-commits] r2652 - in trunk/openvas-client: . include nessus src/util
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Mar 4 10:56:04 CET 2009
Author: felix
Date: 2009-03-04 10:56:02 +0100 (Wed, 04 Mar 2009)
New Revision: 2652
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/include/config.h.in
trunk/openvas-client/nessus/parser.c
trunk/openvas-client/src/util/parseutils.c
Log:
Replaced #ifdef DEBUGMORE switches by #ifdef DEBUGs.
* include/config.h.in: No need to undef MOREDEBUG anymore.
* nessus/parser.c, src/util/parseutils.c: Replaced DEBUGMORE by DEBUG.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-03-04 09:25:48 UTC (rev 2651)
+++ trunk/openvas-client/ChangeLog 2009-03-04 09:56:02 UTC (rev 2652)
@@ -1,5 +1,13 @@
2009-03-04 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ Replaced #ifdef DEBUGMORE switches by #ifdef DEBUGs.
+
+ * include/config.h.in: No need to undef MOREDEBUG anymore.
+
+ * nessus/parser.c, src/util/parseutils.c: Replaced DEBUGMORE by DEBUG.
+
+2009-03-04 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
Improved documentation of data_mining module, minor reformatting.
* nessus/data_mining.c: Improved documentation.
Modified: trunk/openvas-client/include/config.h.in
===================================================================
--- trunk/openvas-client/include/config.h.in 2009-03-04 09:25:48 UTC (rev 2651)
+++ trunk/openvas-client/include/config.h.in 2009-03-04 09:56:02 UTC (rev 2652)
@@ -28,7 +28,6 @@
#undef DEBUG
/* more paricular debuging flags */
-#undef DEBUGMORE
#undef ENABLE_PID_STAMP_DEBUGGING
/* Definitions for client/server ecryption, activated on the C compiler
Modified: trunk/openvas-client/nessus/parser.c
===================================================================
--- trunk/openvas-client/nessus/parser.c 2009-03-04 09:25:48 UTC (rev 2651)
+++ trunk/openvas-client/nessus/parser.c 2009-03-04 09:56:02 UTC (rev 2652)
@@ -581,7 +581,7 @@
if(!port){efree(&hostname); return;}
subnet = __host2subnet(hostname);
backend_insert_report_port(backend, subnet, hostname, port);
-#ifdef DEBUGMORE
+#ifdef DEBUG
fprintf(stderr, "Port %s opened on %s\n", port, hostname);
#endif
@@ -659,7 +659,7 @@
backend_insert_report_data(backend, subnet, hostname, port, script_id,
msgt, data);
-#ifdef DEBUGMORE
+#ifdef DEBUG
fprintf(stderr,"data for %s (port %s) [type : %d] : \n%s\n", hostname, port, type, data);
#endif
Modified: trunk/openvas-client/src/util/parseutils.c
===================================================================
--- trunk/openvas-client/src/util/parseutils.c 2009-03-04 09:25:48 UTC (rev 2651)
+++ trunk/openvas-client/src/util/parseutils.c 2009-03-04 09:56:02 UTC (rev 2652)
@@ -51,7 +51,7 @@
int
priority_name_to_type(char *name)
{
-#ifdef DEBUGMORE
+#ifdef DEBUG
fprintf(stderr, "%s:%d type : %s\n", __FILE__, __LINE__, name);
#endif
if(!strcmp(MSG_HOLE_STR, name))return(MSG_HOLE);
More information about the Openvas-commits
mailing list