This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SFCB - Small Footprint CIM Broker".
The branch, master has been updated
via 2aacc4b26f420a661cb7c606efdfb86c59280a95 (commit)
via 2ae282e5325d7c928a101daaffa9571a499254a9 (commit)
from 91be3529cd5467d83df93caba18d9b3694175908 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2aacc4b26f420a661cb7c606efdfb86c59280a95
Author: Michael Chase-Salerno <br...@li...>
Date: Fri Feb 24 18:27:31 2012 -0500
3487675-Log-message-troubles-with-n
commit 2ae282e5325d7c928a101daaffa9571a499254a9
Author: Michael Chase-Salerno <br...@li...>
Date: Fri Feb 24 18:25:02 2012 -0500
3487675 Log message troubles with \n
-----------------------------------------------------------------------
Summary of changes:
diff --git a/ChangeLog b/ChangeLog
index 1d2ffa8..29f8092 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* interopProvider.c, indCIMXMLHandler.c, sfcb.cfg.pre.in
[ 3484025 ] Disable indication sequencing
+ * mlog.c:
+ [ 3487675 ] Log message troubles with \n
+
2012-01-26 Michael Chase-Salerno <br...@li...>
* interopProvider.c, indCIMXMLHandler.c, indRetryTest.sh
diff --git a/mlog.c b/mlog.c
index fc8515d..3f12032 100644
--- a/mlog.c
+++ b/mlog.c
@@ -139,7 +139,15 @@ mlogf(int priority, int errout, const char *fmt, ...)
char buf[LOG_MSG_MAX];
va_start(ap, fmt);
- vsnprintf(buf, LOG_MSG_MAX, fmt, ap);
+ // Leave a space for the /n on the end.
+ vsnprintf(buf, LOG_MSG_MAX-1, fmt, ap);
+ // Now check to make sure we have a /n at the end
+ int buflen=strlen(buf);
+ if ( buf[buflen-1] != '\n' ) {
+ strcat(buf,"\n");
+ }
+
+
/*
* we sometimes call mlogf when sfcbd isn't started (i.e. via
hooks/post-receive
--
SFCB - Small Footprint CIM Broker
|