From ce3ca221527f46f1ef5b180d9a4c7caf8f360a11 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 27 Nov 2020 14:14:36 +0900 Subject: [PATCH] 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 ded4ae9f8..150f5f597 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;