arch/arm/src/sam34/sam_hsmci.c: Fix syslog formats
This commit is contained in:
parent
8af7af12b3
commit
8eb0712dec
@ -24,6 +24,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
@ -1295,7 +1296,7 @@ static int sam_interrupt(int irq, void *context, FAR void *arg)
|
||||
{
|
||||
/* Yes.. Was it some kind of timeout error? */
|
||||
|
||||
mcerr("ERROR: enabled: %08x pending: %08x\n",
|
||||
mcerr("ERROR: enabled: %08" PRIx32 " pending: %08" PRIx32 "\n",
|
||||
enabled, pending);
|
||||
|
||||
if ((pending & HSMCI_DATA_TIMEOUT_ERRORS) != 0)
|
||||
@ -1342,7 +1343,7 @@ static int sam_interrupt(int irq, void *context, FAR void *arg)
|
||||
{
|
||||
/* Yes.. Was the error some kind of timeout? */
|
||||
|
||||
mcerr("ERROR: events: %08x SR: %08x\n",
|
||||
mcerr("ERROR: events: %08" PRIx32 " SR: %08" PRIx32 "\n",
|
||||
priv->cmdrmask, enabled);
|
||||
|
||||
if ((pending & HSMCI_RESPONSE_TIMEOUT_ERRORS) != 0)
|
||||
@ -1797,7 +1798,8 @@ static int sam_sendcmd(FAR struct sdio_dev_s *dev,
|
||||
|
||||
/* Write the fully decorated command to CMDR */
|
||||
|
||||
mcinfo("cmd: %08x arg: %08x regval: %08x\n", cmd, arg, regval);
|
||||
mcinfo("cmd: %08" PRIx32 " arg: %08" PRIx32 " regval: %08" PRIx32 "\n",
|
||||
cmd, arg, regval);
|
||||
putreg32(regval, SAM_HSMCI_CMDR);
|
||||
sam_cmdsample1(SAMPLENDX_AFTER_CMDR);
|
||||
return OK;
|
||||
@ -1979,7 +1981,8 @@ static int sam_waitresponse(FAR struct sdio_dev_s *dev, uint32_t cmd)
|
||||
{
|
||||
/* Yes.. Was the error some kind of timeout? */
|
||||
|
||||
mcerr("ERROR: cmd: %08x events: %08x SR: %08x\n",
|
||||
mcerr("ERROR: cmd: %08" PRIx32 " events: %08" PRIx32
|
||||
" SR: %08" PRIx32 "\n",
|
||||
cmd, priv->cmdrmask, sr);
|
||||
|
||||
if ((pending & HSMCI_RESPONSE_TIMEOUT_ERRORS) != 0)
|
||||
@ -2011,8 +2014,9 @@ static int sam_waitresponse(FAR struct sdio_dev_s *dev, uint32_t cmd)
|
||||
}
|
||||
else if (--timeout <= 0)
|
||||
{
|
||||
mcerr("ERROR: Timeout cmd: %08x events: %08x SR: %08x\n",
|
||||
cmd, priv->cmdrmask, sr);
|
||||
mcerr("ERROR: Timeout cmd: %08" PRIx32 " events: %08" PRIx32
|
||||
" SR: %08" PRIx32 "\n",
|
||||
cmd, priv->cmdrmask, sr);
|
||||
|
||||
priv->wkupevent = SDIOWAIT_TIMEOUT;
|
||||
return -ETIMEDOUT;
|
||||
@ -2512,7 +2516,7 @@ static int sam_dmarecvsetup(FAR struct sdio_dev_s *dev, FAR uint8_t *buffer,
|
||||
|
||||
#ifdef CONFIG_SAM34_PDCA
|
||||
modifyreg32(SAM_HSMCI_MR, 0, HSMCI_MR_PDCMODE);
|
||||
mcinfo("SAM_HSMCI_MR = 0x%08X\n", getreg32(SAM_HSMCI_MR));
|
||||
mcinfo("SAM_HSMCI_MR = 0x%08" PRIX32 "\n", getreg32(SAM_HSMCI_MR));
|
||||
|
||||
putreg32((uint32_t)buffer, SAM_HSMCI_PDC_RPR);
|
||||
putreg32(buflen / 4, SAM_HSMCI_PDC_RCR);
|
||||
@ -2582,7 +2586,7 @@ static int sam_dmasendsetup(FAR struct sdio_dev_s *dev,
|
||||
|
||||
#ifdef CONFIG_SAM34_PDCA
|
||||
modifyreg32(SAM_HSMCI_MR, 0, HSMCI_MR_PDCMODE);
|
||||
mcinfo("SAM_HSMCI_MR = 0x%08X\n", getreg32(SAM_HSMCI_MR));
|
||||
mcinfo("SAM_HSMCI_MR = 0x%08" PRIX32 "\n", getreg32(SAM_HSMCI_MR));
|
||||
|
||||
putreg32((uint32_t)buffer, SAM_HSMCI_PDC_TPR);
|
||||
putreg32(buflen / 4, SAM_HSMCI_PDC_TCR);
|
||||
|
Loading…
Reference in New Issue
Block a user