mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
logs: handle LWS_LOGS_TIMESTAMP disabled
This commit is contained in:
parent
a7e4724a5e
commit
eb8c8354c4
1 changed files with 1 additions and 3 deletions
|
@ -200,7 +200,6 @@ lws_lc_tag(lws_lifecycle_t *lc)
|
|||
}
|
||||
|
||||
|
||||
#if defined(LWS_LOGS_TIMESTAMP)
|
||||
int
|
||||
lwsl_timestamp(int level, char *p, size_t len)
|
||||
{
|
||||
|
@ -251,7 +250,6 @@ lwsl_timestamp(int level, char *p, size_t len)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef LWS_PLAT_OPTEE
|
||||
static const char * const colours[] = {
|
||||
|
@ -390,7 +388,7 @@ __lws_logv(lws_log_cx_t *cx, lws_log_prepend_cx_t prep, void *obj,
|
|||
return;
|
||||
|
||||
#if !defined(LWS_LOGS_TIMESTAMP)
|
||||
if (cx->flags & LLLF_LOG_TIMESTAMP)
|
||||
if (cx->lll_flags & LLLF_LOG_TIMESTAMP)
|
||||
#endif
|
||||
{
|
||||
buf[0] = '\0';
|
||||
|
|
Loading…
Add table
Reference in a new issue