arch: cxd56xx: wdt: Fix compile error in debug log

Fix compile error when CXD56_WDT_REGDEBUG is enabled.
This commit is contained in:
SPRESENSE 2021-05-19 17:04:27 +09:00 committed by Alin Jerpelea
parent f0cae6cdf3
commit 6d3fb9ee81
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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 */