summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 9ad09da..46839ee 100644
--- a/src/log.c
+++ b/src/log.c
@@ -31,6 +31,7 @@
31#include <syslog.h> 31#include <syslog.h>
32 32
33#include "log.h" 33#include "log.h"
34#include "utils.h"
34 35
35unsigned int log_level = LL_WARNING; 36unsigned int log_level = LL_WARNING;
36 37
@@ -70,7 +71,7 @@ void usbmuxd_log(enum loglevel level, const char *fmt, ...)
70 if(level > log_level) 71 if(level > log_level)
71 return; 72 return;
72 73
73 gettimeofday(&ts, NULL); 74 get_tick_count(&ts);
74 tp = localtime(&ts.tv_sec); 75 tp = localtime(&ts.tv_sec);
75 76
76 fs = malloc(20 + strlen(fmt)); 77 fs = malloc(20 + strlen(fmt));