libs: 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:33:04 -03:00 committed by Petro Karashchenko
parent 5ce77fad1b
commit 470287fe5c
23 changed files with 27 additions and 27 deletions

View File

@ -53,7 +53,7 @@ int pthread_attr_destroy(FAR pthread_attr_t *attr)
{
int ret;
linfo("attr=0x%p\n", attr);
linfo("attr=%p\n", attr);
if (!attr)
{

View File

@ -51,7 +51,7 @@
int pthread_attr_getaffinity_np(FAR const pthread_attr_t *attr,
size_t cpusetsize, cpu_set_t *cpuset)
{
linfo("attr=0x%p cpusetsize=%d cpuset=0x%p\n",
linfo("attr=%p cpusetsize=%d cpuset=%p\n",
attr, (int)cpusetsize, cpuset);
DEBUGASSERT(attr != NULL && cpusetsize == sizeof(cpu_set_t) &&

View File

@ -57,7 +57,7 @@ int pthread_attr_getinheritsched(FAR const pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p inheritsched=0x%p\n", attr, inheritsched);
linfo("attr=%p inheritsched=%p\n", attr, inheritsched);
if (!attr || !inheritsched)
{

View File

@ -55,7 +55,7 @@ int pthread_attr_getschedparam(FAR const pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p param=0x%p\n", attr, param);
linfo("attr=%p param=%p\n", attr, param);
if (!attr || !param)
{

View File

@ -54,7 +54,7 @@ int pthread_attr_getschedpolicy(FAR const pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p policy=0x%p\n", attr, policy);
linfo("attr=%p policy=%p\n", attr, policy);
if (!attr || !policy)
{

View File

@ -53,7 +53,7 @@ int pthread_attr_getstack(FAR pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p stackaddr=0x%p stacksize=0x%p\n",
linfo("attr=%p stackaddr=%p stacksize=%p\n",
attr, stackaddr, stacksize);
if (!attr || !stackaddr || !stacksize)

View File

@ -53,7 +53,7 @@ int pthread_attr_getstacksize(FAR const pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p stacksize=0x%p\n", attr, stacksize);
linfo("attr=%p stacksize=%p\n", attr, stacksize);
if (!stacksize)
{

View File

@ -71,7 +71,7 @@ int pthread_attr_init(FAR pthread_attr_t *attr)
{
int ret = OK;
linfo("attr=0x%p\n", attr);
linfo("attr=%p\n", attr);
if (!attr)
{
ret = ENOMEM;

View File

@ -53,7 +53,7 @@ int pthread_attr_setaffinity_np(FAR pthread_attr_t *attr,
size_t cpusetsize,
FAR const cpu_set_t *cpuset)
{
linfo("attr=0x%p cpusetsize=%d cpuset=0x%p\n",
linfo("attr=%p cpusetsize=%d cpuset=%p\n",
attr, (int)cpusetsize, cpuset);
DEBUGASSERT(attr != NULL && cpusetsize == sizeof(cpu_set_t) &&

View File

@ -55,7 +55,7 @@ int pthread_attr_setschedparam(FAR pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p param=0x%p\n", attr, param);
linfo("attr=%p param=%p\n", attr, param);
if (!attr || !param)
{

View File

@ -55,7 +55,7 @@ int pthread_attr_setschedpolicy(FAR pthread_attr_t *attr, int policy)
{
int ret;
linfo("attr=0x%p policy=%d\n", attr, policy);
linfo("attr=%p policy=%d\n", attr, policy);
if (!attr ||
(policy != SCHED_FIFO

View File

@ -55,7 +55,7 @@ int pthread_attr_setstack(FAR pthread_attr_t *attr,
{
int ret;
linfo("attr=0x%p stackaddr=0x%p stacksize=%ld\n",
linfo("attr=%p stackaddr=%p stacksize=%ld\n",
attr, stackaddr, stacksize);
if (!attr || !stackaddr || stacksize < PTHREAD_STACK_MIN)

View File

@ -53,7 +53,7 @@ int pthread_attr_setstacksize(FAR pthread_attr_t *attr, size_t stacksize)
{
int ret;
linfo("attr=0x%p stacksize=%zu\n", attr, stacksize);
linfo("attr=%p stacksize=%zu\n", attr, stacksize);
if (!attr || stacksize < PTHREAD_STACK_MIN)
{

View File

@ -52,7 +52,7 @@ int pthread_condattr_destroy(FAR pthread_condattr_t *attr)
{
int ret = OK;
linfo("attr=0x%p\n", attr);
linfo("attr=%p\n", attr);
if (!attr)
{

View File

@ -52,7 +52,7 @@ int pthread_condattr_init(FAR pthread_condattr_t *attr)
{
int ret = OK;
linfo("attr=0x%p\n", attr);
linfo("attr=%p\n", attr);
if (!attr)
{

View File

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

View File

@ -54,7 +54,7 @@ int pthread_cond_init(FAR pthread_cond_t *cond,
{
int ret = OK;
sinfo("cond=0x%p attr=0x%p\n", cond, attr);
sinfo("cond=%p attr=%p\n", cond, attr);
if (cond == NULL)
{

View File

@ -52,7 +52,7 @@ int pthread_mutexattr_destroy(FAR pthread_mutexattr_t *attr)
{
int ret = OK;
linfo("attr=0x%p\n", attr);
linfo("attr=%p\n", attr);
if (!attr)
{

View File

@ -54,7 +54,7 @@ int pthread_mutexattr_getpshared(FAR const pthread_mutexattr_t *attr,
{
int ret = OK;
linfo("attr=0x%p pshared=0x%p\n", attr, pshared);
linfo("attr=%p pshared=%p\n", attr, pshared);
if (!attr || !pshared)
{

View File

@ -52,7 +52,7 @@ int pthread_mutexattr_init(FAR pthread_mutexattr_t *attr)
{
int ret = OK;
linfo("attr=0x%p\n", attr);
linfo("attr=%p\n", attr);
if (!attr)
{

View File

@ -51,7 +51,7 @@
int pthread_mutexattr_setprotocol(FAR pthread_mutexattr_t *attr,
int protocol)
{
linfo("attr=0x%p protocol=%d\n", attr, protocol);
linfo("attr=%p protocol=%d\n", attr, protocol);
DEBUGASSERT(attr != NULL);
if (protocol >= PTHREAD_PRIO_NONE && protocol <= PTHREAD_PRIO_PROTECT)

View File

@ -53,7 +53,7 @@ int pthread_mutexattr_setpshared(FAR pthread_mutexattr_t *attr, int pshared)
{
int ret = OK;
linfo("attr=0x%p pshared=%d\n", attr, pshared);
linfo("attr=%p pshared=%d\n", attr, pshared);
if (!attr || (pshared != 0 && pshared != 1))
{

View File

@ -864,17 +864,17 @@ int lib_vscanf(FAR struct lib_instream_s *obj, FAR int *lastc,
switch (modifier)
{
case HH_MOD:
linfo("Return %ld to 0x%p\n", tmplong, pchar);
linfo("Return %ld to %p\n", tmplong, pchar);
*pchar = (unsigned char)tmplong;
break;
case H_MOD:
linfo("Return %ld to 0x%p\n", tmplong, pshort);
linfo("Return %ld to %p\n", tmplong, pshort);
*pshort = (unsigned short)tmplong;
break;
case NO_MOD:
linfo("Return %ld to 0x%p\n", tmplong, pint);
linfo("Return %ld to %p\n", tmplong, pint);
*pint = (unsigned int)tmplong;
break;
@ -882,13 +882,13 @@ int lib_vscanf(FAR struct lib_instream_s *obj, FAR int *lastc,
case L_MOD:
#endif
default:
linfo("Return %ld to 0x%p\n", tmplong, plong);
linfo("Return %ld to %p\n", tmplong, plong);
*plong = tmplong;
break;
#ifdef CONFIG_LIBC_LONG_LONG
case LL_MOD:
linfo("Return %lld to 0x%p\n", tmplonglong,
linfo("Return %lld to %p\n", tmplonglong,
plonglong);
*plonglong = tmplonglong;
break;