[Nagios-devel] Errors in debug-macros
Posted: Fri May 13, 2005 6:05 am
This is a multi-part message in MIME format.
--------------060308030805040109060003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Some of the #ifdef DEBUG0 have typos, making them #ifdef DEBUGO instead
(capital o instead of the number 0).
The attached patch fixes it.
It also takes care of some inconsistent indentation for the #ifdef's,
where one of them has a whitespace before them. This is highly annoying
because I'm working on a new execution flow debugging scheme which will
be more or less transparent to the coder, and my sed-scripts kept
failing with the indented line.
Apply with patch -p1.
More to follow.
--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer
--------------060308030805040109060003
Content-Type: text/plain;
name="nagios-debugo-macros.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-debugo-macros.diff"
diff -urN ../nagios.orig/xdata/xodtemplate.c ./xdata/xodtemplate.c
--- ../nagios.orig/xdata/xodtemplate.c Tue Apr 19 17:53:42 2005
+++ ./xdata/xodtemplate.c Thu May 12 11:07:07 2005
@@ -283,7 +283,7 @@
char *temp_ptr;
mmapfile *thefile;
-#ifdef DEBUGO
+#ifdef DEBUG0
printf("xodtemplate_grab_config_info() start\n");
#endif
@@ -341,7 +341,7 @@
strip(macro_x[MACRO_OBJECTCACHEFILE]);
#endif
-#ifdef DEBUGO
+#ifdef DEBUG0
printf("xodtemplate_grab_config_info() end\n");
#endif
return OK;
@@ -3664,7 +3664,7 @@
xodtemplate_free_hostlist(temp_hostlist);
}
- #ifdef DEBUG0
+#ifdef DEBUG0
printf("xodtemplate_duplicate_services() end\n");
#endif
--------------060308030805040109060003--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
--------------060308030805040109060003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Some of the #ifdef DEBUG0 have typos, making them #ifdef DEBUGO instead
(capital o instead of the number 0).
The attached patch fixes it.
It also takes care of some inconsistent indentation for the #ifdef's,
where one of them has a whitespace before them. This is highly annoying
because I'm working on a new execution flow debugging scheme which will
be more or less transparent to the coder, and my sed-scripts kept
failing with the indented line.
Apply with patch -p1.
More to follow.
--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer
--------------060308030805040109060003
Content-Type: text/plain;
name="nagios-debugo-macros.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-debugo-macros.diff"
diff -urN ../nagios.orig/xdata/xodtemplate.c ./xdata/xodtemplate.c
--- ../nagios.orig/xdata/xodtemplate.c Tue Apr 19 17:53:42 2005
+++ ./xdata/xodtemplate.c Thu May 12 11:07:07 2005
@@ -283,7 +283,7 @@
char *temp_ptr;
mmapfile *thefile;
-#ifdef DEBUGO
+#ifdef DEBUG0
printf("xodtemplate_grab_config_info() start\n");
#endif
@@ -341,7 +341,7 @@
strip(macro_x[MACRO_OBJECTCACHEFILE]);
#endif
-#ifdef DEBUGO
+#ifdef DEBUG0
printf("xodtemplate_grab_config_info() end\n");
#endif
return OK;
@@ -3664,7 +3664,7 @@
xodtemplate_free_hostlist(temp_hostlist);
}
- #ifdef DEBUG0
+#ifdef DEBUG0
printf("xodtemplate_duplicate_services() end\n");
#endif
--------------060308030805040109060003--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]