Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16792

Modified Files:
        utils.c 
Log Message:
suppress timestamp message until we can figure out where it is coming from,
since it appears that this isn't causing a real problem


Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- utils.c     15 Jul 2005 23:00:46 -0000      1.58
+++ utils.c     19 Jul 2005 14:08:19 -0000      1.59
@@ -30,6 +30,7 @@
 #include "asterisk/io.h"
 #include "asterisk/logger.h"
 #include "asterisk/md5.h"
+#include "asterisk/options.h"
 
 #define AST_API_MODULE         /* ensure that inlinable API functions will be 
built in this module if required */
 #include "asterisk/strings.h"
@@ -506,8 +507,9 @@
                a.tv_sec += a.tv_usec % ONE_MILLION;
                a.tv_usec %= ONE_MILLION;
        } else if (a.tv_usec < 0) {
-               ast_log(LOG_ERROR, "warning negative timestamp %ld.%ld\n",
-                       a.tv_sec, a.tv_usec);
+               if (option_debug)
+                       ast_log(LOG_DEBUG, "warning negative timestamp 
%ld.%ld\n",
+                               a.tv_sec, a.tv_usec);
                a.tv_usec = 0;
        }
        return a;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to