Change prints to debug (#1168)
This commit is contained in:
@@ -51,13 +51,13 @@ static volatile int websocket_dispatch_mutex_cnt = 0;
|
||||
|
||||
void bsc_websocket_global_lock_dbg(char *f, int line)
|
||||
{
|
||||
printf(
|
||||
debug_printf(
|
||||
"bsc_websocket_global_lock_dbg() >>> %s:%d lock_cnt %d tid = %ld\n", f,
|
||||
line, websocket_mutex_cnt, pthread_self());
|
||||
websocket_mutex_cnt++;
|
||||
fflush(stdout);
|
||||
pthread_mutex_lock(&websocket_mutex);
|
||||
printf(
|
||||
debug_printf(
|
||||
"bsc_websocket_global_lock_dbg() <<< lock_cnt %d tid = %ld\n",
|
||||
websocket_mutex_cnt, pthread_self());
|
||||
fflush(stdout);
|
||||
@@ -65,13 +65,13 @@ void bsc_websocket_global_lock_dbg(char *f, int line)
|
||||
|
||||
void bsc_websocket_global_unlock_dbg(char *f, int line)
|
||||
{
|
||||
printf(
|
||||
debug_printf(
|
||||
"bsc_websocket_global_unlock_dbg() >>> %s:%d lock_cnt %d tid = %ld\n",
|
||||
f, line, websocket_mutex_cnt, pthread_self());
|
||||
websocket_mutex_cnt--;
|
||||
fflush(stdout);
|
||||
pthread_mutex_unlock(&websocket_mutex);
|
||||
printf(
|
||||
debug_printf(
|
||||
"bsc_websocket_global_unlock_dbg() <<< lock_cnt %d tid = %ld\n",
|
||||
websocket_mutex_cnt, pthread_self());
|
||||
fflush(stdout);
|
||||
@@ -79,13 +79,13 @@ void bsc_websocket_global_unlock_dbg(char *f, int line)
|
||||
|
||||
void bws_dispatch_lock_dbg(char *f, int line)
|
||||
{
|
||||
printf(
|
||||
debug_printf(
|
||||
"bws_dispatch_lock_dbg() >>> %s:%d lock_cnt %d tid = %ld\n", f, line,
|
||||
websocket_dispatch_mutex_cnt, pthread_self());
|
||||
websocket_dispatch_mutex_cnt++;
|
||||
fflush(stdout);
|
||||
pthread_mutex_lock(&websocket_dispatch_mutex);
|
||||
printf(
|
||||
debug_printf(
|
||||
"bws_dispatch_lock_dbg() <<< lock_cnt %d tid = %ld\n",
|
||||
websocket_dispatch_mutex_cnt, pthread_self());
|
||||
fflush(stdout);
|
||||
@@ -93,13 +93,13 @@ void bws_dispatch_lock_dbg(char *f, int line)
|
||||
|
||||
void bws_dispatch_unlock_dbg(char *f, int line)
|
||||
{
|
||||
printf(
|
||||
debug_printf(
|
||||
"bws_dispatch_unlock_dbg() >>> %s:%d lock_cnt %d tid = %ld\n", f, line,
|
||||
websocket_dispatch_mutex_cnt, pthread_self());
|
||||
websocket_dispatch_mutex_cnt--;
|
||||
fflush(stdout);
|
||||
pthread_mutex_unlock(&websocket_dispatch_mutex);
|
||||
printf(
|
||||
debug_printf(
|
||||
"bws_dispatch_unlock_dbg() <<< lock_cnt %d tid = %ld\n",
|
||||
websocket_dispatch_mutex_cnt, pthread_self());
|
||||
fflush(stdout);
|
||||
@@ -115,7 +115,7 @@ void bsc_websocket_init_log(void)
|
||||
if (!bsc_websocket_log_initialized) {
|
||||
bsc_websocket_log_initialized = true;
|
||||
#if DEBUG_LIBWEBSOCKETS_ENABLED == 1
|
||||
printf("LWS_MAX_SMP = %d", LWS_MAX_SMP);
|
||||
debug_printf("LWS_MAX_SMP = %d", LWS_MAX_SMP);
|
||||
lws_set_log_level(
|
||||
LLL_ERR | LLL_WARN | LLL_NOTICE | LLL_INFO | LLL_DEBUG |
|
||||
LLL_PARSER | LLL_HEADER | LLL_EXT | LLL_CLIENT | LLL_LATENCY |
|
||||
|
||||
Reference in New Issue
Block a user