From bb348cc464406694eb3b3242a6ca178df9241bba Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Wed, 19 May 2021 17:04:29 +0900 Subject: [PATCH] arch: cxd56xx: gnss: Fix compile error in debug log Fix compile error when debug log is enabled. Replace debug message from obsolete logerr() to _err(). --- arch/arm/src/cxd56xx/cxd56_gnss.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/cxd56xx/cxd56_gnss.h b/arch/arm/src/cxd56xx/cxd56_gnss.h index e0e61a80394..e66e7f3d35b 100644 --- a/arch/arm/src/cxd56xx/cxd56_gnss.h +++ b/arch/arm/src/cxd56xx/cxd56_gnss.h @@ -47,19 +47,19 @@ extern "C" /* GNSS specific debug */ #ifdef CONFIG_CXD56_GNSS_DEBUG_ERROR -# define gnsserr(fmt, ...) logerr(fmt, ## __VA_ARGS__) +# define gnsserr(fmt, ...) _err(fmt, ## __VA_ARGS__) #else # define gnsserr(fmt, ...) #endif #ifdef CONFIG_CXD56_GNSS_DEBUG_WARN -# define gnsswarn(fmt, ...) logwarn(fmt, ## __VA_ARGS__) +# define gnsswarn(fmt, ...) _warn(fmt, ## __VA_ARGS__) #else # define gnsswarn(fmt, ...) #endif #ifdef CONFIG_CXD56_GNSS_DEBUG_INFO -# define gnssinfo(fmt, ...) loginfo(fmt, ## __VA_ARGS__) +# define gnssinfo(fmt, ...) _info(fmt, ## __VA_ARGS__) #else # define gnssinfo(fmt, ...) #endif