aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-19 14:08:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-19 14:08:19 +0000
commite8541d07e41310065e8337d988403d752794b1f5 (patch)
tree15c119a63a1feda70571a0bd388d7dca09fe8ec6 /utils.c
parent1d67a58c162febf27251e094bcdad7e8f191d71f (diff)
suppress timestamp message until we can figure out where it is coming from,
since it appears that this isn't causing a real problem git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6159 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 2043e6286..a1dfbb053 100755
--- a/utils.c
+++ b/utils.c
@@ -30,6 +30,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#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 @@ static struct timeval tvfix(struct timeval a)
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;