diff options
Diffstat (limited to 'src/log.c')
| -rw-r--r-- | src/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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 | ||
| 35 | unsigned int log_level = LL_WARNING; | 36 | unsigned 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)); |
