summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/log.c b/daemon/log.c
index 2ccb3cc..2392b0d 100644
--- a/daemon/log.c
+++ b/daemon/log.c
@@ -67,12 +67,12 @@ void usbmuxd_log(enum loglevel level, const char *fmt, ...)
67 struct timeval ts; 67 struct timeval ts;
68 struct tm *tp; 68 struct tm *tp;
69 69
70 gettimeofday(&ts, NULL);
71 tp = localtime(&ts.tv_sec);
72
73 if(level > log_level) 70 if(level > log_level)
74 return; 71 return;
75 72
73 gettimeofday(&ts, NULL);
74 tp = localtime(&ts.tv_sec);
75
76 fs = malloc(20 + strlen(fmt)); 76 fs = malloc(20 + strlen(fmt));
77 77
78 if(log_syslog) { 78 if(log_syslog) {