You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2021/05/20 05:24:11 UTC
[incubator-nuttx] 14/21: arch: cxd56xx: wdt: Fix compile error in
debug log
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 6d3fb9ee817975f2de31dfebb7b0e8b047cfcdcd
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed May 19 17:04:27 2021 +0900
arch: cxd56xx: wdt: Fix compile error in debug log
Fix compile error when CXD56_WDT_REGDEBUG is enabled.
---
arch/arm/src/cxd56xx/Kconfig | 1 +
arch/arm/src/cxd56xx/cxd56_wdt.c | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/arch/arm/src/cxd56xx/Kconfig b/arch/arm/src/cxd56xx/Kconfig
index 2f1f404..b3f525c 100644
--- a/arch/arm/src/cxd56xx/Kconfig
+++ b/arch/arm/src/cxd56xx/Kconfig
@@ -190,6 +190,7 @@ config CXD56_WDT_INTERRUPT
config CXD56_WDT_REGDEBUG
bool "Register level debug"
default n
+ depends on DEBUG_WATCHDOG_INFO
---help---
Enable low-level register debug output
diff --git a/arch/arm/src/cxd56xx/cxd56_wdt.c b/arch/arm/src/cxd56xx/cxd56_wdt.c
index 301f323..7cf97dd 100644
--- a/arch/arm/src/cxd56xx/cxd56_wdt.c
+++ b/arch/arm/src/cxd56xx/cxd56_wdt.c
@@ -172,7 +172,7 @@ static uint32_t cxd56_getreg(uintptr_t regaddr)
{
if (count == 4)
{
- logdebug("...\n");
+ wdinfo("...\n");
}
return regval;
@@ -189,7 +189,7 @@ static uint32_t cxd56_getreg(uintptr_t regaddr)
{
/* Yes.. then show how many times the value repeated */
- logdebug("[repeats %d more times]\n", count - 3);
+ wdinfo("[repeats %d more times]\n", count - 3);
}
/* Save the new address, value, and count */
@@ -201,7 +201,7 @@ static uint32_t cxd56_getreg(uintptr_t regaddr)
/* Show the register value read */
- logdebug("%08x->%08\n", regaddr, regval);
+ wdinfo("%08x->%08\n", regaddr, regval);
return regval;
}
#endif
@@ -219,7 +219,7 @@ static void cxd56_putreg(uint32_t regval, uintptr_t regaddr)
{
/* Show the register value being written */
- logdebug("%08x<-%08x\n", regaddr, regval);
+ wdinfo("%08x<-%08x\n", regaddr, regval);
/* Write the value */