From 03c3b2ed0f48529d91e34ad95c8f5e2c18e283ad Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Wed, 16 Sep 2020 10:41:59 +0900 Subject: [PATCH] system: nxplayer: Fix a compile error if CONFIG_DEBUG_AUDIO_ERROR=y Summary: - This commit fixes a compile error Impact: - Affects nxplayer with CONFIG_DEBUG_AUDIO_ERROR=y Testing: - Tested with spresense:rndis Signed-off-by: Masayuki Ishikawa --- system/nxplayer/nxplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c index deb9fe002..24b466028 100644 --- a/system/nxplayer/nxplayer.c +++ b/system/nxplayer/nxplayer.c @@ -669,7 +669,7 @@ static int nxplayer_readbuffer(FAR struct nxplayer_s *pplayer, if (apb->nbytes < apb->nmaxbytes) { -#ifdef CONFIG_DEBUG_AUDIO_INFO +#if defined (CONFIG_DEBUG_AUDIO_INFO) || defined (CONFIG_DEBUG_AUDIO_ERROR) int errcode = errno; audinfo("Closing audio file, nbytes=%d errcode=%d\n",