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:
parent
5ce77fad1b
commit
470287fe5c
@ -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)
|
||||
{
|
||||
|
@ -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) &&
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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) &&
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user