From: Per Malmberg Date: Thu, 28 Dec 2017 14:21:00 +0000 (+0100) Subject: Removed logging from pthread conditional variable which completely drowned out any... X-Git-Tag: v3.1-beta1~507^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2370b283051db127bfd0f8e09eb51930eb8cdb4;p=esp-idf Removed logging from pthread conditional variable which completely drowned out any other logging and also had negative effects on the RMT due to sharing the same log system. Related to #1345 / TW#16842 --- diff --git a/components/pthread/pthread_cond_var.c b/components/pthread/pthread_cond_var.c index 1d43787d3c..39e23821f1 100644 --- a/components/pthread/pthread_cond_var.c +++ b/components/pthread/pthread_cond_var.c @@ -46,8 +46,6 @@ typedef struct esp_pthread_cond { int pthread_cond_signal(pthread_cond_t *cv) { - ESP_LOGV(TAG, "%s %p", __FUNCTION__, cv); - if (cv == NULL || *cv == (pthread_cond_t) 0) { return EINVAL; } @@ -67,8 +65,6 @@ int pthread_cond_signal(pthread_cond_t *cv) int pthread_cond_broadcast(pthread_cond_t *cv) { - ESP_LOGV(TAG, "%s %p", __FUNCTION__, cv); - if (cv == NULL || *cv == (pthread_cond_t) 0) { return EINVAL; } @@ -87,8 +83,6 @@ int pthread_cond_broadcast(pthread_cond_t *cv) int pthread_cond_wait(pthread_cond_t *cv, pthread_mutex_t *mut) { - ESP_LOGV(TAG, "%s %p %p", __FUNCTION__, cv, mut); - return pthread_cond_timedwait(cv, mut, NULL); } @@ -97,8 +91,6 @@ int pthread_cond_timedwait(pthread_cond_t *cv, pthread_mutex_t *mut, const struc int ret; TickType_t timeout_ticks; - ESP_LOGV(TAG, "%s %p %p %p", __FUNCTION__, cv, mut, to); - if (cv == NULL || *cv == (pthread_cond_t) 0) { return EINVAL; } @@ -166,8 +158,6 @@ int pthread_cond_init(pthread_cond_t *cv, const pthread_condattr_t *att) { (void) att; /* Unused argument as of now */ - ESP_LOGV(TAG, "%s %p %p", __FUNCTION__, cv, att); - if (cv == NULL) { return EINVAL; } @@ -188,7 +178,6 @@ int pthread_cond_destroy(pthread_cond_t *cv) { int ret = 0; - ESP_LOGV(TAG, "%s %p", __FUNCTION__, cv); if (cv == NULL || *cv == (pthread_cond_t) 0) { return EINVAL; }