You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/30 19:09:04 UTC

[incubator-nuttx] branch master updated (fafe91cec6 -> 1416afc6b6)

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


    from fafe91cec6 Nucleo Wl55JC board supports E-ink display
     new 5ce77fad1b arch: Remove "0x" prefix preceding "%p" specifier on format string
     new 470287fe5c libs: Remove "0x" prefix preceding "%p" specifier on format string
     new 1416afc6b6 sched: Remove "0x" prefix preceding "%p" specifier on format string

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm/src/arm/arm_schedulesigaction.c           |  4 ++--
 arch/arm/src/armv6-m/arm_schedulesigaction.c       |  8 ++++----
 arch/arm/src/armv7-a/arm_schedulesigaction.c       |  8 ++++----
 arch/arm/src/armv7-m/arm_schedulesigaction.c       |  8 ++++----
 arch/arm/src/armv7-r/arm_schedulesigaction.c       |  4 ++--
 arch/arm/src/armv8-m/arm_schedulesigaction.c       |  8 ++++----
 arch/arm/src/lc823450/lc823450_usbdev.c            |  2 +-
 arch/arm/src/samd5e5/sam_tc.c                      |  2 +-
 arch/arm/src/samd5e5/sam_usb.c                     |  2 +-
 arch/arm/src/tiva/common/tiva_adclib.c             |  2 +-
 arch/arm/src/tlsr82/tc32/tc32_schedulesigaction.c  |  4 ++--
 arch/arm/src/tlsr82/tlsr82_pwm.c                   |  2 +-
 arch/avr/src/avr/up_schedulesigaction.c            |  4 ++--
 arch/avr/src/avr32/up_schedulesigaction.c          |  4 ++--
 arch/ceva/src/common/up_schedulesigaction.c        |  4 ++--
 arch/mips/src/mips32/mips_schedulesigaction.c      |  4 ++--
 arch/misoc/src/lm32/lm32_schedulesigaction.c       |  4 ++--
 arch/misoc/src/minerva/minerva_schedulesigaction.c |  4 ++--
 arch/or1k/src/common/up_schedulesigaction.c        |  4 ++--
 arch/renesas/src/m16c/m16c_schedulesigaction.c     |  4 ++--
 arch/renesas/src/rx65n/rx65n_schedulesigaction.c   |  4 ++--
 arch/renesas/src/sh1/sh1_schedulesigaction.c       |  4 ++--
 arch/risc-v/src/common/riscv_schedulesigaction.c   |  8 ++++----
 arch/sim/src/sim/up_schedulesigaction.c            |  2 +-
 arch/sparc/src/sparc_v8/up_schedulesigaction.c     |  4 ++--
 arch/x86/src/i486/up_schedulesigaction.c           |  4 ++--
 arch/x86_64/src/intel64/up_schedulesigaction.c     |  4 ++--
 arch/xtensa/src/common/xtensa_schedsigaction.c     |  8 ++++----
 arch/z16/src/common/z16_schedulesigaction.c        |  4 ++--
 arch/z80/src/ez80/ez80_schedulesigaction.c         |  2 +-
 arch/z80/src/z180/z180_schedulesigaction.c         |  2 +-
 arch/z80/src/z8/z8_schedulesigaction.c             |  2 +-
 arch/z80/src/z80/z80_schedulesigaction.c           |  2 +-
 libs/libc/pthread/pthread_attr_destroy.c           |  2 +-
 libs/libc/pthread/pthread_attr_getaffinity.c       |  2 +-
 libs/libc/pthread/pthread_attr_getinheritsched.c   |  2 +-
 libs/libc/pthread/pthread_attr_getschedparam.c     |  2 +-
 libs/libc/pthread/pthread_attr_getschedpolicy.c    |  2 +-
 libs/libc/pthread/pthread_attr_getstack.c          |  2 +-
 libs/libc/pthread/pthread_attr_getstacksize.c      |  2 +-
 libs/libc/pthread/pthread_attr_init.c              |  2 +-
 libs/libc/pthread/pthread_attr_setaffinity.c       |  2 +-
 libs/libc/pthread/pthread_attr_setschedparam.c     |  2 +-
 libs/libc/pthread/pthread_attr_setschedpolicy.c    |  2 +-
 libs/libc/pthread/pthread_attr_setstack.c          |  2 +-
 libs/libc/pthread/pthread_attr_setstacksize.c      |  2 +-
 libs/libc/pthread/pthread_condattr_destroy.c       |  2 +-
 libs/libc/pthread/pthread_condattr_init.c          |  2 +-
 libs/libc/pthread/pthread_conddestroy.c            |  2 +-
 libs/libc/pthread/pthread_condinit.c               |  2 +-
 libs/libc/pthread/pthread_mutexattr_destroy.c      |  2 +-
 libs/libc/pthread/pthread_mutexattr_getpshared.c   |  2 +-
 libs/libc/pthread/pthread_mutexattr_init.c         |  2 +-
 libs/libc/pthread/pthread_mutexattr_setprotocol.c  |  2 +-
 libs/libc/pthread/pthread_mutexattr_setpshared.c   |  2 +-
 libs/libc/stdio/lib_libvscanf.c                    | 10 +++++-----
 sched/pthread/pthread_completejoin.c               |  4 ++--
 sched/pthread/pthread_condbroadcast.c              |  2 +-
 sched/pthread/pthread_condclockwait.c              |  2 +-
 sched/pthread/pthread_condsignal.c                 |  2 +-
 sched/pthread/pthread_condwait.c                   |  2 +-
 sched/pthread/pthread_getschedparam.c              |  2 +-
 sched/pthread/pthread_join.c                       |  4 ++--
 sched/pthread/pthread_mutexconsistent.c            |  2 +-
 sched/pthread/pthread_mutexdestroy.c               |  2 +-
 sched/pthread/pthread_mutexinit.c                  |  2 +-
 sched/pthread/pthread_mutextimedlock.c             |  2 +-
 sched/pthread/pthread_mutextrylock.c               |  2 +-
 sched/pthread/pthread_mutexunlock.c                |  2 +-
 sched/pthread/pthread_setschedparam.c              |  2 +-
 70 files changed, 111 insertions(+), 111 deletions(-)


[incubator-nuttx] 03/03: sched: Remove "0x" prefix preceding "%p" specifier on format string

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 1416afc6b62c1391eec2e067f010dd323e163f41
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Jun 30 14:34:24 2022 -0300

    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 <gu...@espressif.com>
---
 sched/pthread/pthread_completejoin.c    | 4 ++--
 sched/pthread/pthread_condbroadcast.c   | 2 +-
 sched/pthread/pthread_condclockwait.c   | 2 +-
 sched/pthread/pthread_condsignal.c      | 2 +-
 sched/pthread/pthread_condwait.c        | 2 +-
 sched/pthread/pthread_getschedparam.c   | 2 +-
 sched/pthread/pthread_join.c            | 4 ++--
 sched/pthread/pthread_mutexconsistent.c | 2 +-
 sched/pthread/pthread_mutexdestroy.c    | 2 +-
 sched/pthread/pthread_mutexinit.c       | 2 +-
 sched/pthread/pthread_mutextimedlock.c  | 2 +-
 sched/pthread/pthread_mutextrylock.c    | 2 +-
 sched/pthread/pthread_mutexunlock.c     | 2 +-
 sched/pthread/pthread_setschedparam.c   | 2 +-
 14 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/sched/pthread/pthread_completejoin.c b/sched/pthread/pthread_completejoin.c
index 3d66fe8a6a..1e76d555a7 100644
--- a/sched/pthread/pthread_completejoin.c
+++ b/sched/pthread/pthread_completejoin.c
@@ -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 */
 
diff --git a/sched/pthread/pthread_condbroadcast.c b/sched/pthread/pthread_condbroadcast.c
index f47b6a0d41..607d6757d2 100644
--- a/sched/pthread/pthread_condbroadcast.c
+++ b/sched/pthread/pthread_condbroadcast.c
@@ -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)
     {
diff --git a/sched/pthread/pthread_condclockwait.c b/sched/pthread/pthread_condclockwait.c
index 2b847bd065..c8d0a8c603 100644
--- a/sched/pthread/pthread_condclockwait.c
+++ b/sched/pthread/pthread_condclockwait.c
@@ -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 */
 
diff --git a/sched/pthread/pthread_condsignal.c b/sched/pthread/pthread_condsignal.c
index a7733bdf37..ba71ff2be9 100644
--- a/sched/pthread/pthread_condsignal.c
+++ b/sched/pthread/pthread_condsignal.c
@@ -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)
     {
diff --git a/sched/pthread/pthread_condwait.c b/sched/pthread/pthread_condwait.c
index 2ec4b9909f..c4da0805ba 100644
--- a/sched/pthread/pthread_condwait.c
+++ b/sched/pthread/pthread_condwait.c
@@ -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 */
 
diff --git a/sched/pthread/pthread_getschedparam.c b/sched/pthread/pthread_getschedparam.c
index f2f6e8efa5..73511b3723 100644
--- a/sched/pthread/pthread_getschedparam.c
+++ b/sched/pthread/pthread_getschedparam.c
@@ -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)
     {
diff --git a/sched/pthread/pthread_join.c b/sched/pthread/pthread_join.c
index 682f9cd0d5..887cef5f92 100644
--- a/sched/pthread/pthread_join.c
+++ b/sched/pthread/pthread_join.c
@@ -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
diff --git a/sched/pthread/pthread_mutexconsistent.c b/sched/pthread/pthread_mutexconsistent.c
index f910510260..4cba0a0771 100644
--- a/sched/pthread/pthread_mutexconsistent.c
+++ b/sched/pthread/pthread_mutexconsistent.c
@@ -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)
diff --git a/sched/pthread/pthread_mutexdestroy.c b/sched/pthread/pthread_mutexdestroy.c
index 354d5fdcdf..2a144dae8a 100644
--- a/sched/pthread/pthread_mutexdestroy.c
+++ b/sched/pthread/pthread_mutexdestroy.c
@@ -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)
diff --git a/sched/pthread/pthread_mutexinit.c b/sched/pthread/pthread_mutexinit.c
index c1956a09ec..a5bd11d420 100644
--- a/sched/pthread/pthread_mutexinit.c
+++ b/sched/pthread/pthread_mutexinit.c
@@ -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)
     {
diff --git a/sched/pthread/pthread_mutextimedlock.c b/sched/pthread/pthread_mutextimedlock.c
index af0698851d..f6d113b020 100644
--- a/sched/pthread/pthread_mutextimedlock.c
+++ b/sched/pthread/pthread_mutextimedlock.c
@@ -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)
diff --git a/sched/pthread/pthread_mutextrylock.c b/sched/pthread/pthread_mutextrylock.c
index 84e2a5632c..25a41b4f72 100644
--- a/sched/pthread/pthread_mutextrylock.c
+++ b/sched/pthread/pthread_mutextrylock.c
@@ -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)
diff --git a/sched/pthread/pthread_mutexunlock.c b/sched/pthread/pthread_mutexunlock.c
index 60ec293755..c4379d14e1 100644
--- a/sched/pthread/pthread_mutexunlock.c
+++ b/sched/pthread/pthread_mutexunlock.c
@@ -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)
     {
diff --git a/sched/pthread/pthread_setschedparam.c b/sched/pthread/pthread_setschedparam.c
index fc44c1162b..8ff53e01e8 100644
--- a/sched/pthread/pthread_setschedparam.c
+++ b/sched/pthread/pthread_setschedparam.c
@@ -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 */
 


[incubator-nuttx] 01/03: arch: Remove "0x" prefix preceding "%p" specifier on format string

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 5ce77fad1b6569ec323fe86e6b0b86297d6a1906
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Jun 30 14:29:59 2022 -0300

    arch: 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 <gu...@espressif.com>
---
 arch/arm/src/arm/arm_schedulesigaction.c           | 4 ++--
 arch/arm/src/armv6-m/arm_schedulesigaction.c       | 8 ++++----
 arch/arm/src/armv7-a/arm_schedulesigaction.c       | 8 ++++----
 arch/arm/src/armv7-m/arm_schedulesigaction.c       | 8 ++++----
 arch/arm/src/armv7-r/arm_schedulesigaction.c       | 4 ++--
 arch/arm/src/armv8-m/arm_schedulesigaction.c       | 8 ++++----
 arch/arm/src/lc823450/lc823450_usbdev.c            | 2 +-
 arch/arm/src/samd5e5/sam_tc.c                      | 2 +-
 arch/arm/src/samd5e5/sam_usb.c                     | 2 +-
 arch/arm/src/tiva/common/tiva_adclib.c             | 2 +-
 arch/arm/src/tlsr82/tc32/tc32_schedulesigaction.c  | 4 ++--
 arch/arm/src/tlsr82/tlsr82_pwm.c                   | 2 +-
 arch/avr/src/avr/up_schedulesigaction.c            | 4 ++--
 arch/avr/src/avr32/up_schedulesigaction.c          | 4 ++--
 arch/ceva/src/common/up_schedulesigaction.c        | 4 ++--
 arch/mips/src/mips32/mips_schedulesigaction.c      | 4 ++--
 arch/misoc/src/lm32/lm32_schedulesigaction.c       | 4 ++--
 arch/misoc/src/minerva/minerva_schedulesigaction.c | 4 ++--
 arch/or1k/src/common/up_schedulesigaction.c        | 4 ++--
 arch/renesas/src/m16c/m16c_schedulesigaction.c     | 4 ++--
 arch/renesas/src/rx65n/rx65n_schedulesigaction.c   | 4 ++--
 arch/renesas/src/sh1/sh1_schedulesigaction.c       | 4 ++--
 arch/risc-v/src/common/riscv_schedulesigaction.c   | 8 ++++----
 arch/sim/src/sim/up_schedulesigaction.c            | 2 +-
 arch/sparc/src/sparc_v8/up_schedulesigaction.c     | 4 ++--
 arch/x86/src/i486/up_schedulesigaction.c           | 4 ++--
 arch/x86_64/src/intel64/up_schedulesigaction.c     | 4 ++--
 arch/xtensa/src/common/xtensa_schedsigaction.c     | 8 ++++----
 arch/z16/src/common/z16_schedulesigaction.c        | 4 ++--
 arch/z80/src/ez80/ez80_schedulesigaction.c         | 2 +-
 arch/z80/src/z180/z180_schedulesigaction.c         | 2 +-
 arch/z80/src/z8/z8_schedulesigaction.c             | 2 +-
 arch/z80/src/z80/z80_schedulesigaction.c           | 2 +-
 33 files changed, 68 insertions(+), 68 deletions(-)

diff --git a/arch/arm/src/arm/arm_schedulesigaction.c b/arch/arm/src/arm/arm_schedulesigaction.c
index f7b7847e89..3101e085e2 100644
--- a/arch/arm/src/arm/arm_schedulesigaction.c
+++ b/arch/arm/src/arm/arm_schedulesigaction.c
@@ -77,7 +77,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -87,7 +87,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
diff --git a/arch/arm/src/armv6-m/arm_schedulesigaction.c b/arch/arm/src/armv6-m/arm_schedulesigaction.c
index a8e0788d3a..e16a7e172d 100644
--- a/arch/arm/src/armv6-m/arm_schedulesigaction.c
+++ b/arch/arm/src/armv6-m/arm_schedulesigaction.c
@@ -81,7 +81,7 @@
 #ifndef CONFIG_SMP
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
   DEBUGASSERT(tcb != NULL && sigdeliver != NULL);
 
   /* Refuse to handle nested signal actions */
@@ -92,7 +92,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
@@ -213,7 +213,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
   int cpu;
   int me;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -223,7 +223,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/arm/src/armv7-a/arm_schedulesigaction.c b/arch/arm/src/armv7-a/arm_schedulesigaction.c
index f21b7a905c..249dad0a12 100644
--- a/arch/arm/src/armv7-a/arm_schedulesigaction.c
+++ b/arch/arm/src/armv7-a/arm_schedulesigaction.c
@@ -80,7 +80,7 @@
 #ifndef CONFIG_SMP
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -90,7 +90,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on this CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
@@ -212,7 +212,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
   int cpu;
   int me;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -222,7 +222,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/arm/src/armv7-m/arm_schedulesigaction.c b/arch/arm/src/armv7-m/arm_schedulesigaction.c
index f45d5c9304..2a8eb3292d 100644
--- a/arch/arm/src/armv7-m/arm_schedulesigaction.c
+++ b/arch/arm/src/armv7-m/arm_schedulesigaction.c
@@ -82,7 +82,7 @@
 #ifndef CONFIG_SMP
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
   DEBUGASSERT(tcb != NULL && sigdeliver != NULL);
 
   /* Refuse to handle nested signal actions */
@@ -93,7 +93,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
@@ -222,7 +222,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
   int cpu;
   int me;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -232,7 +232,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/arm/src/armv7-r/arm_schedulesigaction.c b/arch/arm/src/armv7-r/arm_schedulesigaction.c
index 122d5bf441..d02f64826d 100644
--- a/arch/arm/src/armv7-r/arm_schedulesigaction.c
+++ b/arch/arm/src/armv7-r/arm_schedulesigaction.c
@@ -77,7 +77,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -87,7 +87,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
diff --git a/arch/arm/src/armv8-m/arm_schedulesigaction.c b/arch/arm/src/armv8-m/arm_schedulesigaction.c
index e62cdcb1b2..d0ca981d5d 100644
--- a/arch/arm/src/armv8-m/arm_schedulesigaction.c
+++ b/arch/arm/src/armv8-m/arm_schedulesigaction.c
@@ -82,7 +82,7 @@
 #ifndef CONFIG_SMP
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
   DEBUGASSERT(tcb != NULL && sigdeliver != NULL);
 
   /* Refuse to handle nested signal actions */
@@ -93,7 +93,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
@@ -222,7 +222,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
   int cpu;
   int me;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -232,7 +232,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/arm/src/lc823450/lc823450_usbdev.c b/arch/arm/src/lc823450/lc823450_usbdev.c
index db4050d362..60a4b8b527 100644
--- a/arch/arm/src/lc823450/lc823450_usbdev.c
+++ b/arch/arm/src/lc823450/lc823450_usbdev.c
@@ -401,7 +401,7 @@ static int lc823450_epconfigure(struct usbdev_ep_s *ep,
       priv->eplist[epnum].ep.maxpacket = GETUINT16(desc->mxpacketsize);
     }
 
-  DPRINTF("epnum = %d, ep = 0x%p, max = %d, speed = 0x%x, in = 0x%x\n",
+  DPRINTF("epnum = %d, ep = %p, max = %d, speed = 0x%x, in = 0x%x\n",
           epnum, ep, priv->eplist[epnum].ep.maxpacket,
           priv->usbdev.speed, priv->eplist[epnum].in);
 
diff --git a/arch/arm/src/samd5e5/sam_tc.c b/arch/arm/src/samd5e5/sam_tc.c
index f24ceb42eb..cc36b30829 100644
--- a/arch/arm/src/samd5e5/sam_tc.c
+++ b/arch/arm/src/samd5e5/sam_tc.c
@@ -729,7 +729,7 @@ TC_HANDLE sam_tc_allocate(int tc, int frequency)
 
   /* Return an opaque reference to the tc */
 
-  tmrinfo("Returning 0x%p\n", priv);
+  tmrinfo("Returning %p\n", priv);
   return (TC_HANDLE)priv;
 }
 
diff --git a/arch/arm/src/samd5e5/sam_usb.c b/arch/arm/src/samd5e5/sam_usb.c
index 259e961633..7e751a3c41 100644
--- a/arch/arm/src/samd5e5/sam_usb.c
+++ b/arch/arm/src/samd5e5/sam_usb.c
@@ -7613,7 +7613,7 @@ static ssize_t sam_transfer(struct usbhost_driver_s *drvr,
   unsigned int idx = (unsigned int)ep;
   ssize_t nbytes;
 
-  uwarn("pipe%d buffer:0x%p buflen:%d\n",  idx, buffer, buflen);
+  uwarn("pipe%d buffer:%p buflen:%d\n",  idx, buffer, buflen);
 
   DEBUGASSERT(priv && buffer && idx < SAM_USB_NENDPOINTS && buflen > 0);
   pipe = &priv->pipelist[idx];
diff --git a/arch/arm/src/tiva/common/tiva_adclib.c b/arch/arm/src/tiva/common/tiva_adclib.c
index 3ba066a893..ca0ac9976e 100644
--- a/arch/arm/src/tiva/common/tiva_adclib.c
+++ b/arch/arm/src/tiva/common/tiva_adclib.c
@@ -397,7 +397,7 @@ void tiva_adc_irq_attach(uint8_t adc, uint8_t sse, xcpt_t isr)
   int irq = sse2irq[SSE_IDX(adc, sse)];
 
 #ifdef CONFIG_DEBUG_ANALOG
-  ainfo("assigning ISR=0x%p to ADC%d SSE%d IRQ=0x%02x...\n",
+  ainfo("assigning ISR=%p to ADC%d SSE%d IRQ=0x%02x...\n",
         isr, adc, sse, irq);
 #endif
 
diff --git a/arch/arm/src/tlsr82/tc32/tc32_schedulesigaction.c b/arch/arm/src/tlsr82/tc32/tc32_schedulesigaction.c
index fb0ddcd97a..cfb0df30d1 100644
--- a/arch/arm/src/tlsr82/tc32/tc32_schedulesigaction.c
+++ b/arch/arm/src/tlsr82/tc32/tc32_schedulesigaction.c
@@ -77,7 +77,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -87,7 +87,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
diff --git a/arch/arm/src/tlsr82/tlsr82_pwm.c b/arch/arm/src/tlsr82/tlsr82_pwm.c
index eb0550753e..0554dacd26 100644
--- a/arch/arm/src/tlsr82/tlsr82_pwm.c
+++ b/arch/arm/src/tlsr82/tlsr82_pwm.c
@@ -300,7 +300,7 @@ static int pwm_config(struct tlsr82_pwmtimer_s *priv,
 
   if (priv == NULL || info == NULL)
     {
-      pwmerr("priv or info is null, priv=0x%p info=0x%p\n", priv, info);
+      pwmerr("priv or info is null, priv=%p info=%p\n", priv, info);
       return -EINVAL;
     }
 
diff --git a/arch/avr/src/avr/up_schedulesigaction.c b/arch/avr/src/avr/up_schedulesigaction.c
index eced7aa732..28556bdb47 100644
--- a/arch/avr/src/avr/up_schedulesigaction.c
+++ b/arch/avr/src/avr/up_schedulesigaction.c
@@ -79,7 +79,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
   uintptr_t reg_ptr = (uintptr_t)up_sigdeliver;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -89,7 +89,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n",
+      sinfo("rtcb=%p g_current_regs=%p\n",
             this_task(), g_current_regs);
 
       if (tcb == this_task())
diff --git a/arch/avr/src/avr32/up_schedulesigaction.c b/arch/avr/src/avr32/up_schedulesigaction.c
index 6ca76e44fc..e537e4b8a9 100644
--- a/arch/avr/src/avr32/up_schedulesigaction.c
+++ b/arch/avr/src/avr32/up_schedulesigaction.c
@@ -77,7 +77,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -87,7 +87,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n",
+      sinfo("rtcb=%p g_current_regs=%p\n",
             this_task(), g_current_regs);
 
       if (tcb == this_task())
diff --git a/arch/ceva/src/common/up_schedulesigaction.c b/arch/ceva/src/common/up_schedulesigaction.c
index 13bb89983b..d92b99a582 100644
--- a/arch/ceva/src/common/up_schedulesigaction.c
+++ b/arch/ceva/src/common/up_schedulesigaction.c
@@ -74,7 +74,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
   DEBUGASSERT(tcb != NULL && sigdeliver != NULL);
 
   /* Refuse to handle nested signal actions */
@@ -85,7 +85,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/mips/src/mips32/mips_schedulesigaction.c b/arch/mips/src/mips32/mips_schedulesigaction.c
index e20021fe87..7e5e5147a6 100644
--- a/arch/mips/src/mips32/mips_schedulesigaction.c
+++ b/arch/mips/src/mips32/mips_schedulesigaction.c
@@ -80,7 +80,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
   uint32_t status;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -90,7 +90,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n",
+      sinfo("rtcb=%p CURRENT_REGS=%p\n",
             this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
diff --git a/arch/misoc/src/lm32/lm32_schedulesigaction.c b/arch/misoc/src/lm32/lm32_schedulesigaction.c
index 88a2343589..d0a75dc438 100644
--- a/arch/misoc/src/lm32/lm32_schedulesigaction.c
+++ b/arch/misoc/src/lm32/lm32_schedulesigaction.c
@@ -77,7 +77,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -87,7 +87,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n",
+      sinfo("rtcb=%p g_current_regs=%p\n",
             this_task(), g_current_regs);
 
       if (tcb == this_task())
diff --git a/arch/misoc/src/minerva/minerva_schedulesigaction.c b/arch/misoc/src/minerva/minerva_schedulesigaction.c
index d41efc497b..9343449a0e 100644
--- a/arch/misoc/src/minerva/minerva_schedulesigaction.c
+++ b/arch/misoc/src/minerva/minerva_schedulesigaction.c
@@ -78,7 +78,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -88,7 +88,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+      sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
       if (tcb == this_task())
         {
diff --git a/arch/or1k/src/common/up_schedulesigaction.c b/arch/or1k/src/common/up_schedulesigaction.c
index f6fc52b1bc..32c5c5612a 100644
--- a/arch/or1k/src/common/up_schedulesigaction.c
+++ b/arch/or1k/src/common/up_schedulesigaction.c
@@ -76,7 +76,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -86,7 +86,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
         {
diff --git a/arch/renesas/src/m16c/m16c_schedulesigaction.c b/arch/renesas/src/m16c/m16c_schedulesigaction.c
index 7f7def8245..f1207d469b 100644
--- a/arch/renesas/src/m16c/m16c_schedulesigaction.c
+++ b/arch/renesas/src/m16c/m16c_schedulesigaction.c
@@ -76,7 +76,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -86,7 +86,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+      sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
       if (tcb == this_task())
         {
diff --git a/arch/renesas/src/rx65n/rx65n_schedulesigaction.c b/arch/renesas/src/rx65n/rx65n_schedulesigaction.c
index 4fb80dcb5d..83eb5f719d 100644
--- a/arch/renesas/src/rx65n/rx65n_schedulesigaction.c
+++ b/arch/renesas/src/rx65n/rx65n_schedulesigaction.c
@@ -76,7 +76,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -86,7 +86,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+      sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
       if (tcb == this_task())
         {
diff --git a/arch/renesas/src/sh1/sh1_schedulesigaction.c b/arch/renesas/src/sh1/sh1_schedulesigaction.c
index 081e78f898..1862da3f74 100644
--- a/arch/renesas/src/sh1/sh1_schedulesigaction.c
+++ b/arch/renesas/src/sh1/sh1_schedulesigaction.c
@@ -76,7 +76,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -86,7 +86,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+      sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
       if (tcb == this_task())
         {
diff --git a/arch/risc-v/src/common/riscv_schedulesigaction.c b/arch/risc-v/src/common/riscv_schedulesigaction.c
index d9d25bc6c9..7b3071f2d8 100644
--- a/arch/risc-v/src/common/riscv_schedulesigaction.c
+++ b/arch/risc-v/src/common/riscv_schedulesigaction.c
@@ -81,7 +81,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
   uintptr_t int_ctx;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -91,7 +91,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n",
+      sinfo("rtcb=%p CURRENT_REGS=%p\n",
             this_task(), CURRENT_REGS);
 
       if (tcb == this_task())
@@ -221,7 +221,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
   int cpu;
   int me;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -231,7 +231,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/sim/src/sim/up_schedulesigaction.c b/arch/sim/src/sim/up_schedulesigaction.c
index e0e18e4a8b..ce081cf5f6 100644
--- a/arch/sim/src/sim/up_schedulesigaction.c
+++ b/arch/sim/src/sim/up_schedulesigaction.c
@@ -77,7 +77,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 
   /* We don't have to anything complex for the simulated target */
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Make sure that interrupts are disabled */
 
diff --git a/arch/sparc/src/sparc_v8/up_schedulesigaction.c b/arch/sparc/src/sparc_v8/up_schedulesigaction.c
index a917306eda..e6fe5e99f6 100644
--- a/arch/sparc/src/sparc_v8/up_schedulesigaction.c
+++ b/arch/sparc/src/sparc_v8/up_schedulesigaction.c
@@ -75,7 +75,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
   irqstate_t flags;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Make sure that interrupts are disabled */
 
@@ -89,7 +89,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n",
+      sinfo("rtcb=%p g_current_regs=%p\n",
             this_task(), g_current_regs);
 
       if (tcb == this_task())
diff --git a/arch/x86/src/i486/up_schedulesigaction.c b/arch/x86/src/i486/up_schedulesigaction.c
index 3218704c08..317e43a924 100644
--- a/arch/x86/src/i486/up_schedulesigaction.c
+++ b/arch/x86/src/i486/up_schedulesigaction.c
@@ -72,7 +72,7 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -82,7 +82,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+      sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
       if (tcb == this_task())
         {
diff --git a/arch/x86_64/src/intel64/up_schedulesigaction.c b/arch/x86_64/src/intel64/up_schedulesigaction.c
index fc1c1716f9..d69e562d83 100644
--- a/arch/x86_64/src/intel64/up_schedulesigaction.c
+++ b/arch/x86_64/src/intel64/up_schedulesigaction.c
@@ -72,8 +72,8 @@
 
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
-  sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
+  sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
   /* Refuse to handle nested signal actions */
 
diff --git a/arch/xtensa/src/common/xtensa_schedsigaction.c b/arch/xtensa/src/common/xtensa_schedsigaction.c
index 188d6a9f06..41c8dfcf72 100644
--- a/arch/xtensa/src/common/xtensa_schedsigaction.c
+++ b/arch/xtensa/src/common/xtensa_schedsigaction.c
@@ -80,14 +80,14 @@
 #ifndef CONFIG_SMP
 void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
   DEBUGASSERT(tcb != NULL && sigdeliver != NULL);
 
   /* Refuse to handle nested signal actions */
 
   if (!tcb->xcp.sigdeliver)
     {
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       /* First, handle some special cases when the signal is being delivered
        * to the currently executing task.
@@ -212,7 +212,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
   int cpu;
   int me;
 
-  sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
+  sinfo("tcb=%p sigdeliver=%p\n", tcb, sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -222,7 +222,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * to task that is currently executing on any CPU.
        */
 
-      sinfo("rtcb=0x%p CURRENT_REGS=0x%p\n", this_task(), CURRENT_REGS);
+      sinfo("rtcb=%p CURRENT_REGS=%p\n", this_task(), CURRENT_REGS);
 
       if (tcb->task_state == TSTATE_TASK_RUNNING)
         {
diff --git a/arch/z16/src/common/z16_schedulesigaction.c b/arch/z16/src/common/z16_schedulesigaction.c
index 49f4266907..340917e3cd 100644
--- a/arch/z16/src/common/z16_schedulesigaction.c
+++ b/arch/z16/src/common/z16_schedulesigaction.c
@@ -76,7 +76,7 @@
 
 void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%06x\n", tcb, (uint32_t)sigdeliver);
+  sinfo("tcb=%p sigdeliver=0x%06x\n", tcb, (uint32_t)sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
@@ -86,7 +86,7 @@ void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
        * being delivered to the currently executing task.
        */
 
-      sinfo("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
+      sinfo("rtcb=%p g_current_regs=%p\n", this_task(), g_current_regs);
 
       if (tcb == this_task())
         {
diff --git a/arch/z80/src/ez80/ez80_schedulesigaction.c b/arch/z80/src/ez80/ez80_schedulesigaction.c
index b01edd3bf0..982b0a3eea 100644
--- a/arch/z80/src/ez80/ez80_schedulesigaction.c
+++ b/arch/z80/src/ez80/ez80_schedulesigaction.c
@@ -102,7 +102,7 @@ static void ez80_sigsetup(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver,
 
 void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%06" PRIx32 "\n", tcb, (uint32_t)sigdeliver);
+  sinfo("tcb=%p sigdeliver=0x%06" PRIx32 "\n", tcb, (uint32_t)sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
diff --git a/arch/z80/src/z180/z180_schedulesigaction.c b/arch/z80/src/z180/z180_schedulesigaction.c
index fee0a27599..3286f5515c 100644
--- a/arch/z80/src/z180/z180_schedulesigaction.c
+++ b/arch/z80/src/z180/z180_schedulesigaction.c
@@ -105,7 +105,7 @@ static void z180_sigsetup(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver,
 
 void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  _info("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
+  _info("tcb=%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
diff --git a/arch/z80/src/z8/z8_schedulesigaction.c b/arch/z80/src/z8/z8_schedulesigaction.c
index 55c88b2db3..a34b4a647f 100644
--- a/arch/z80/src/z8/z8_schedulesigaction.c
+++ b/arch/z80/src/z8/z8_schedulesigaction.c
@@ -102,7 +102,7 @@ static void z8_sigsetup(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver,
 
 void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  sinfo("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
+  sinfo("tcb=%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
 
   /* Refuse to handle nested signal actions */
 
diff --git a/arch/z80/src/z80/z80_schedulesigaction.c b/arch/z80/src/z80/z80_schedulesigaction.c
index 87d4b533b5..2eff5d4c8d 100644
--- a/arch/z80/src/z80/z80_schedulesigaction.c
+++ b/arch/z80/src/z80/z80_schedulesigaction.c
@@ -103,7 +103,7 @@ static void z80_sigsetup(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver,
 
 void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
 {
-  _info("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
+  _info("tcb=%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
 
   /* Refuse to handle nested signal actions */
 


[incubator-nuttx] 02/03: libs: Remove "0x" prefix preceding "%p" specifier on format string

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 470287fe5cf332697f06e567cdbddf1036c738df
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Jun 30 14:33:04 2022 -0300

    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 <gu...@espressif.com>
---
 libs/libc/pthread/pthread_attr_destroy.c          |  2 +-
 libs/libc/pthread/pthread_attr_getaffinity.c      |  2 +-
 libs/libc/pthread/pthread_attr_getinheritsched.c  |  2 +-
 libs/libc/pthread/pthread_attr_getschedparam.c    |  2 +-
 libs/libc/pthread/pthread_attr_getschedpolicy.c   |  2 +-
 libs/libc/pthread/pthread_attr_getstack.c         |  2 +-
 libs/libc/pthread/pthread_attr_getstacksize.c     |  2 +-
 libs/libc/pthread/pthread_attr_init.c             |  2 +-
 libs/libc/pthread/pthread_attr_setaffinity.c      |  2 +-
 libs/libc/pthread/pthread_attr_setschedparam.c    |  2 +-
 libs/libc/pthread/pthread_attr_setschedpolicy.c   |  2 +-
 libs/libc/pthread/pthread_attr_setstack.c         |  2 +-
 libs/libc/pthread/pthread_attr_setstacksize.c     |  2 +-
 libs/libc/pthread/pthread_condattr_destroy.c      |  2 +-
 libs/libc/pthread/pthread_condattr_init.c         |  2 +-
 libs/libc/pthread/pthread_conddestroy.c           |  2 +-
 libs/libc/pthread/pthread_condinit.c              |  2 +-
 libs/libc/pthread/pthread_mutexattr_destroy.c     |  2 +-
 libs/libc/pthread/pthread_mutexattr_getpshared.c  |  2 +-
 libs/libc/pthread/pthread_mutexattr_init.c        |  2 +-
 libs/libc/pthread/pthread_mutexattr_setprotocol.c |  2 +-
 libs/libc/pthread/pthread_mutexattr_setpshared.c  |  2 +-
 libs/libc/stdio/lib_libvscanf.c                   | 10 +++++-----
 23 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/libs/libc/pthread/pthread_attr_destroy.c b/libs/libc/pthread/pthread_attr_destroy.c
index 2ff6c40c54..8dae7f0263 100644
--- a/libs/libc/pthread/pthread_attr_destroy.c
+++ b/libs/libc/pthread/pthread_attr_destroy.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_attr_getaffinity.c b/libs/libc/pthread/pthread_attr_getaffinity.c
index f0a1e5567c..aaa4c2200d 100644
--- a/libs/libc/pthread/pthread_attr_getaffinity.c
+++ b/libs/libc/pthread/pthread_attr_getaffinity.c
@@ -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) &&
diff --git a/libs/libc/pthread/pthread_attr_getinheritsched.c b/libs/libc/pthread/pthread_attr_getinheritsched.c
index 0d5cbee874..40a5cf3019 100644
--- a/libs/libc/pthread/pthread_attr_getinheritsched.c
+++ b/libs/libc/pthread/pthread_attr_getinheritsched.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_attr_getschedparam.c b/libs/libc/pthread/pthread_attr_getschedparam.c
index 11ffcf24df..382c333b4c 100644
--- a/libs/libc/pthread/pthread_attr_getschedparam.c
+++ b/libs/libc/pthread/pthread_attr_getschedparam.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_attr_getschedpolicy.c b/libs/libc/pthread/pthread_attr_getschedpolicy.c
index 80863774e4..dfb0c49635 100644
--- a/libs/libc/pthread/pthread_attr_getschedpolicy.c
+++ b/libs/libc/pthread/pthread_attr_getschedpolicy.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_attr_getstack.c b/libs/libc/pthread/pthread_attr_getstack.c
index c9f0dbcaf2..42515e5dac 100644
--- a/libs/libc/pthread/pthread_attr_getstack.c
+++ b/libs/libc/pthread/pthread_attr_getstack.c
@@ -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)
diff --git a/libs/libc/pthread/pthread_attr_getstacksize.c b/libs/libc/pthread/pthread_attr_getstacksize.c
index 35073048ac..11e9348b45 100644
--- a/libs/libc/pthread/pthread_attr_getstacksize.c
+++ b/libs/libc/pthread/pthread_attr_getstacksize.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_attr_init.c b/libs/libc/pthread/pthread_attr_init.c
index e9ed898b8f..7831d5f7ad 100644
--- a/libs/libc/pthread/pthread_attr_init.c
+++ b/libs/libc/pthread/pthread_attr_init.c
@@ -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;
diff --git a/libs/libc/pthread/pthread_attr_setaffinity.c b/libs/libc/pthread/pthread_attr_setaffinity.c
index 019eba3363..c7b020662f 100644
--- a/libs/libc/pthread/pthread_attr_setaffinity.c
+++ b/libs/libc/pthread/pthread_attr_setaffinity.c
@@ -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) &&
diff --git a/libs/libc/pthread/pthread_attr_setschedparam.c b/libs/libc/pthread/pthread_attr_setschedparam.c
index da600f16cb..c4a338a8e2 100644
--- a/libs/libc/pthread/pthread_attr_setschedparam.c
+++ b/libs/libc/pthread/pthread_attr_setschedparam.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_attr_setschedpolicy.c b/libs/libc/pthread/pthread_attr_setschedpolicy.c
index fd864d9dcb..87d52ce892 100644
--- a/libs/libc/pthread/pthread_attr_setschedpolicy.c
+++ b/libs/libc/pthread/pthread_attr_setschedpolicy.c
@@ -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
diff --git a/libs/libc/pthread/pthread_attr_setstack.c b/libs/libc/pthread/pthread_attr_setstack.c
index 402ccf666d..9320107fca 100644
--- a/libs/libc/pthread/pthread_attr_setstack.c
+++ b/libs/libc/pthread/pthread_attr_setstack.c
@@ -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)
diff --git a/libs/libc/pthread/pthread_attr_setstacksize.c b/libs/libc/pthread/pthread_attr_setstacksize.c
index 37691b5960..aaab30b2e8 100644
--- a/libs/libc/pthread/pthread_attr_setstacksize.c
+++ b/libs/libc/pthread/pthread_attr_setstacksize.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_condattr_destroy.c b/libs/libc/pthread/pthread_condattr_destroy.c
index 5a8ad5952b..827996b5aa 100644
--- a/libs/libc/pthread/pthread_condattr_destroy.c
+++ b/libs/libc/pthread/pthread_condattr_destroy.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_condattr_init.c b/libs/libc/pthread/pthread_condattr_init.c
index edfab0f7bc..d217ceeaf8 100644
--- a/libs/libc/pthread/pthread_condattr_init.c
+++ b/libs/libc/pthread/pthread_condattr_init.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_conddestroy.c b/libs/libc/pthread/pthread_conddestroy.c
index 1ae90a14f7..806a8bc461 100644
--- a/libs/libc/pthread/pthread_conddestroy.c
+++ b/libs/libc/pthread/pthread_conddestroy.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_condinit.c b/libs/libc/pthread/pthread_condinit.c
index 37d1223ed2..83ba8002e2 100644
--- a/libs/libc/pthread/pthread_condinit.c
+++ b/libs/libc/pthread/pthread_condinit.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_mutexattr_destroy.c b/libs/libc/pthread/pthread_mutexattr_destroy.c
index 3bd3655a0d..01cefa6b9a 100644
--- a/libs/libc/pthread/pthread_mutexattr_destroy.c
+++ b/libs/libc/pthread/pthread_mutexattr_destroy.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_mutexattr_getpshared.c b/libs/libc/pthread/pthread_mutexattr_getpshared.c
index d8a4309b30..2d42135e66 100644
--- a/libs/libc/pthread/pthread_mutexattr_getpshared.c
+++ b/libs/libc/pthread/pthread_mutexattr_getpshared.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_mutexattr_init.c b/libs/libc/pthread/pthread_mutexattr_init.c
index 5ce3c7e1a5..d04d5c52e4 100644
--- a/libs/libc/pthread/pthread_mutexattr_init.c
+++ b/libs/libc/pthread/pthread_mutexattr_init.c
@@ -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)
     {
diff --git a/libs/libc/pthread/pthread_mutexattr_setprotocol.c b/libs/libc/pthread/pthread_mutexattr_setprotocol.c
index 6c3a347b01..d9acfd9fb5 100644
--- a/libs/libc/pthread/pthread_mutexattr_setprotocol.c
+++ b/libs/libc/pthread/pthread_mutexattr_setprotocol.c
@@ -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)
diff --git a/libs/libc/pthread/pthread_mutexattr_setpshared.c b/libs/libc/pthread/pthread_mutexattr_setpshared.c
index 30ef1c58ae..ab8019718f 100644
--- a/libs/libc/pthread/pthread_mutexattr_setpshared.c
+++ b/libs/libc/pthread/pthread_mutexattr_setpshared.c
@@ -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))
     {
diff --git a/libs/libc/stdio/lib_libvscanf.c b/libs/libc/stdio/lib_libvscanf.c
index 7f6652fd3c..56c3b444e1 100644
--- a/libs/libc/stdio/lib_libvscanf.c
+++ b/libs/libc/stdio/lib_libvscanf.c
@@ -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;