sched: Remove "0x" prefix preceding "%p" specifier on format string

The "p" format specifier already prepends the pointer address with
"0x" when printing.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-06-30 14:34:24 -03:00 committed by Petro Karashchenko
parent 470287fe5c
commit 1416afc6b6
14 changed files with 16 additions and 16 deletions

View File

@ -54,7 +54,7 @@ static bool pthread_notifywaiters(FAR struct join_s *pjoin)
int ntasks_waiting;
int status;
sinfo("pjoin=0x%p\n", pjoin);
sinfo("pjoin=%p\n", pjoin);
/* Are any tasks waiting for our exit value? */
@ -257,7 +257,7 @@ int pthread_completejoin(pid_t pid, FAR void *exit_value)
void pthread_destroyjoin(FAR struct task_group_s *group,
FAR struct join_s *pjoin)
{
sinfo("pjoin=0x%p\n", pjoin);
sinfo("pjoin=%p\n", pjoin);
/* Remove the join info from the set of joins */

View File

@ -56,7 +56,7 @@ int pthread_cond_broadcast(FAR pthread_cond_t *cond)
int ret = OK;
int sval;
sinfo("cond=0x%p\n", cond);
sinfo("cond=%p\n", cond);
if (!cond)
{

View File

@ -78,7 +78,7 @@ int pthread_cond_clockwait(FAR pthread_cond_t *cond,
int ret = OK;
int status;
sinfo("cond=0x%p mutex=0x%p abstime=0x%p\n", cond, mutex, abstime);
sinfo("cond=%p mutex=%p abstime=%p\n", cond, mutex, abstime);
/* pthread_cond_clockwait() is a cancellation point */

View File

@ -55,7 +55,7 @@ int pthread_cond_signal(FAR pthread_cond_t *cond)
int ret = OK;
int sval;
sinfo("cond=0x%p\n", cond);
sinfo("cond=%p\n", cond);
if (!cond)
{

View File

@ -59,7 +59,7 @@ int pthread_cond_wait(FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex)
int status;
int ret;
sinfo("cond=0x%p mutex=0x%p\n", cond, mutex);
sinfo("cond=%p mutex=%p\n", cond, mutex);
/* pthread_cond_wait() is a cancellation point */

View File

@ -78,7 +78,7 @@ int pthread_getschedparam(pthread_t thread, FAR int *policy,
{
int ret;
sinfo("Thread ID=%d policy=0x%p param=0x%p\n", thread, policy, param);
sinfo("Thread ID=%d policy=%p param=%p\n", thread, policy, param);
if (policy == NULL || param == NULL)
{

View File

@ -176,7 +176,7 @@ int pthread_join(pthread_t thread, FAR pthread_addr_t *pexit_value)
if (pexit_value)
{
sinfo("exit_value=0x%p\n", pjoin->exit_value);
sinfo("exit_value=%p\n", pjoin->exit_value);
*pexit_value = pjoin->exit_value;
}
}
@ -206,7 +206,7 @@ int pthread_join(pthread_t thread, FAR pthread_addr_t *pexit_value)
if (pexit_value)
{
*pexit_value = pjoin->exit_value;
sinfo("exit_value=0x%p\n", pjoin->exit_value);
sinfo("exit_value=%p\n", pjoin->exit_value);
}
/* Post the thread's data semaphore so that the exiting thread

View File

@ -76,7 +76,7 @@ int pthread_mutex_consistent(FAR pthread_mutex_t *mutex)
int ret = EINVAL;
int status;
sinfo("mutex=0x%p\n", mutex);
sinfo("mutex=%p\n", mutex);
DEBUGASSERT(mutex != NULL);
if (mutex != NULL)

View File

@ -60,7 +60,7 @@ int pthread_mutex_destroy(FAR pthread_mutex_t *mutex)
int ret = EINVAL;
int status;
sinfo("mutex=0x%p\n", mutex);
sinfo("mutex=%p\n", mutex);
DEBUGASSERT(mutex != NULL);
if (mutex != NULL)

View File

@ -77,7 +77,7 @@ int pthread_mutex_init(FAR pthread_mutex_t *mutex,
int ret = OK;
int status;
sinfo("mutex=0x%p attr=0x%p\n", mutex, attr);
sinfo("mutex=%p attr=%p\n", mutex, attr);
if (!mutex)
{

View File

@ -81,7 +81,7 @@ int pthread_mutex_timedlock(FAR pthread_mutex_t *mutex,
pid_t mypid = getpid();
int ret = EINVAL;
sinfo("mutex=0x%p\n", mutex);
sinfo("mutex=%p\n", mutex);
DEBUGASSERT(mutex != NULL);
if (mutex != NULL)

View File

@ -71,7 +71,7 @@ int pthread_mutex_trylock(FAR pthread_mutex_t *mutex)
int status;
int ret = EINVAL;
sinfo("mutex=0x%p\n", mutex);
sinfo("mutex=%p\n", mutex);
DEBUGASSERT(mutex != NULL);
if (mutex != NULL)

View File

@ -102,7 +102,7 @@ int pthread_mutex_unlock(FAR pthread_mutex_t *mutex)
{
int ret = EPERM;
sinfo("mutex=0x%p\n", mutex);
sinfo("mutex=%p\n", mutex);
DEBUGASSERT(mutex != NULL);
if (mutex == NULL)
{

View File

@ -91,7 +91,7 @@ int pthread_setschedparam(pthread_t thread, int policy,
{
int ret;
sinfo("thread ID=%d policy=%d param=0x%p\n", thread, policy, param);
sinfo("thread ID=%d policy=%d param=%p\n", thread, policy, param);
/* Let nxsched_set_scheduler do all of the work */