diff options
| author | Miguel <m.i@gmx.at> | 2018-08-17 17:51:51 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-17 17:51:51 +0200 |
| commit | 51d4dd040a291b62c648ff6cc0d7e0058cf4056f (patch) | |
| tree | 142b7db302ba038dba526f99e5854cfc87b5f92e /lib | |
| parent | 006214f8c63189500b6ca55e0ef8f97eb35d47f5 (diff) | |
starting implicit function calls cleanup
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/logger/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c index dc93784..fbc0614 100644 --- a/lib/logger/log.c +++ b/lib/logger/log.c @@ -25,17 +25,19 @@ void log(char *module_name, int log_level, char *format_string, ...) #ifdef FOOLOS_LOG_OFF return; #endif + if(log_level<FOOLOS_LOG_LEVEL)return; char buf_info[256]; char buf_log[256]; char buf_time[20]; - uint32_t t=timer_get_ticks(); + uint32_t t=timer_get_ms(); uint32_t s=t/25; uint32_t ms=t*1000/25-1000*s; - tfp_sprintf(buf_time,"[%3d.%05d]",s,ms); + //tfp_sprintf(buf_time,"[%3d.%05d]",s,ms); + tfp_sprintf(buf_time,"[ ]"); va_list va; va_start(va,format_string); |
