Fix printf format warnings

This commit is contained in:
TimJTi 2023-09-20 17:03:18 +01:00 committed by Xiang Xiao
parent c22646c0d4
commit 42093bbd54

View File

@ -1785,8 +1785,7 @@ static void classd_returnbuffers(struct classd_dev_s *priv)
apb = (struct ap_buffer_s *)dq_remfirst(&priv->doneq); apb = (struct ap_buffer_s *)dq_remfirst(&priv->doneq);
leave_critical_section(flags); leave_critical_section(flags);
audinfo("Returning: apb=%p curbyte=%" PRId32 " nbytes=%" PRId32 \ audinfo("Returning: apb=%p curbyte=%d nbytes=%d flags=%04x\n",
" flags=%04x\n",
apb, apb->curbyte, apb->nbytes, apb->flags); apb, apb->curbyte, apb->nbytes, apb->flags);
/* Are we returning the final buffer in the stream? */ /* 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 */ /* Take next buffer from the queue of pending transfers */
apb = (struct ap_buffer_s *)dq_remfirst(&priv->pendq); 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); apb, apb->nbytes, priv->inflight);
/* Increment the number of buffers in-flight before sending in order /* 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); 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); apb, apb->curbyte, apb->nbytes);
/* Take a reference on the new audio buffer */ /* 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, static int classd_cancelbuffer(struct audio_lowerhalf_s *dev,
struct ap_buffer_s *apb) 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); apb, apb->curbyte, apb->nbytes);
return OK; return OK;