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 08:43:42 UTC
[incubator-nuttx-apps] 04/05: system/nxrecorder/nxrecorder.c: Don't
assume debug macro expansion
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-apps.git
commit ce3ca221527f46f1ef5b180d9a4c7caf8f360a11
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 14:14:36 2020 +0900
system/nxrecorder/nxrecorder.c: Don't assume debug macro expansion
---
system/nxrecorder/nxrecorder.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c
index ded4ae9..150f5f5 100644
--- a/system/nxrecorder/nxrecorder.c
+++ b/system/nxrecorder/nxrecorder.c
@@ -484,7 +484,9 @@ static void *nxrecorder_recordthread(pthread_addr_t pvarg)
/* Send a stop message to the device */
+#ifdef CONFIG_DEBUG_FEATURES
audinfo("Stopping! outstanding=%d\n", outstanding);
+#endif
#ifdef CONFIG_AUDIO_MULTI_SESSION
ioctl(precorder->dev_fd, AUDIOIOC_STOP,
@@ -503,7 +505,9 @@ static void *nxrecorder_recordthread(pthread_addr_t pvarg)
/* Message indicating the recordback is complete */
case AUDIO_MSG_COMPLETE:
+#ifdef CONFIG_DEBUG_FEATURES
audinfo("Record complete. outstanding=%d\n", outstanding);
+#endif
running = false;
break;