diff options
Diffstat (limited to 'daemon/log.c')
| -rw-r--r-- | daemon/log.c | 6 | 
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, ...)  	struct timeval ts;  	struct tm *tp; -	gettimeofday(&ts, NULL); -	tp = localtime(&ts.tv_sec); -  	if(level > log_level)  		return; +	gettimeofday(&ts, NULL); +	tp = localtime(&ts.tv_sec); +  	fs = malloc(20 + strlen(fmt));  	if(log_syslog) { | 
