You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/27 11:19:39 UTC
[incubator-nuttx] 32/48: drivers/audio/cxd56.c: Fix syslog formats
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/incubator-nuttx.git
commit b3d39176bcef1b7fc1c8bb0201b9a1056882f669
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 13:51:56 2020 +0900
drivers/audio/cxd56.c: Fix syslog formats
---
drivers/audio/cxd56.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/drivers/audio/cxd56.c b/drivers/audio/cxd56.c
index 935303f..80aeb5f 100644
--- a/drivers/audio/cxd56.c
+++ b/drivers/audio/cxd56.c
@@ -2367,6 +2367,8 @@ static int cxd56_power_on(FAR struct cxd56_dev_s *dev)
if (g_codec_start_count == 0)
{
+ uint32_t val;
+
board_audio_i2s_enable();
board_audio_initialize();
@@ -2388,17 +2390,19 @@ static int cxd56_power_on(FAR struct cxd56_dev_s *dev)
/* Power_on_codec */
- if (read_reg(REG_AC_REVID) != CXD56_EXP_REVID)
+ val = read_reg(REG_AC_REVID);
+ if (val != CXD56_EXP_REVID)
{
- auderr("ERROR: Power on REVID mismatch (%x vs. %x)\n",
- REG_AC_REVID, CXD56_EXP_REVID);
+ auderr("ERROR: Power on REVID mismatch (%" PRIx32 " vs. %x)\n",
+ val, CXD56_EXP_REVID);
return -ENXIO;
}
- if (read_reg(REG_AC_DEVICEID) != CXD56_EXP_DEVICEID)
+ val = read_reg(REG_AC_DEVICEID);
+ if (val != CXD56_EXP_DEVICEID)
{
- auderr("ERROR: Power on DEVICEID mismatch (%x vs. %x)\n",
- REG_AC_DEVICEID, CXD56_EXP_DEVICEID);
+ auderr("ERROR: Power on DEVICEID mismatch (%" PRIx32 " vs. %x)\n",
+ val, CXD56_EXP_DEVICEID);
return -ENXIO;
}