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

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


The following commit(s) were added to refs/heads/master by this push:
     new 42093bbd54 Fix printf format warnings
42093bbd54 is described below

commit 42093bbd54bffe95eb5e8125b5eb3a73883525b3
Author: TimJTi <56726697+tim...@users.noreply.github.com>
AuthorDate: Wed Sep 20 17:03:18 2023 +0100

    Fix printf format warnings
---
 arch/arm/src/sama5/sam_classd.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/arm/src/sama5/sam_classd.c b/arch/arm/src/sama5/sam_classd.c
index deb2446c1c..49bbe59a89 100644
--- a/arch/arm/src/sama5/sam_classd.c
+++ b/arch/arm/src/sama5/sam_classd.c
@@ -1785,8 +1785,7 @@ static void classd_returnbuffers(struct classd_dev_s 
*priv)
       apb = (struct ap_buffer_s *)dq_remfirst(&priv->doneq);
       leave_critical_section(flags);
 
-      audinfo("Returning: apb=%p curbyte=%" PRId32 " nbytes=%" PRId32 \
-              " flags=%04x\n",
+      audinfo("Returning: apb=%p curbyte=%d nbytes=%d flags=%04x\n",
               apb, apb->curbyte, apb->nbytes, apb->flags);
 
       /* Are we returning the final buffer in the stream? */
@@ -1900,7 +1899,7 @@ static int classd_sendbuffer(struct classd_dev_s *priv)
       /* Take next buffer from the queue of pending transfers */
 
       apb = (struct ap_buffer_s *)dq_remfirst(&priv->pendq);
-      audinfo("Sending apb=%p, size=%" PRId32 " inflight=%d\n",
+      audinfo("Sending apb=%p, size=%d inflight=%d\n",
               apb, apb->nbytes, priv->inflight);
 
       /* Increment the number of buffers in-flight before sending in order
@@ -2342,7 +2341,7 @@ static int classd_enqueuebuffer(struct audio_lowerhalf_s 
*dev,
 
   DEBUGASSERT(priv && apb && priv->dev.upper);
 
-  audinfo("Enqueuing: apb=%p curbyte=%" PRId32 " nbytes=%" PRId32 "\n",
+  audinfo("Enqueuing: apb=%p curbyte=%d nbytes=%d\n",
            apb, apb->curbyte, apb->nbytes);
 
   /* Take a reference on the new audio buffer */
@@ -2390,7 +2389,7 @@ static int classd_enqueuebuffer(struct audio_lowerhalf_s 
*dev,
 static int classd_cancelbuffer(struct audio_lowerhalf_s *dev,
                                struct ap_buffer_s *apb)
 {
-  audinfo("apb=%p curbyte=%" PRId32 " nbytes=%" PRId32 ", return OK\n",
+  audinfo("apb=%p curbyte=%d nbytes=%d, return OK\n",
           apb, apb->curbyte, apb->nbytes);
 
   return OK;

Reply via email to