From: Alexei Gradinari Date: Fri, 6 Jan 2023 16:06:09 +0000 (-0500) Subject: format_wav: replace ast_log(LOG_DEBUG, ...) by ast_debug(1, ...) X-Git-Tag: 18.17.0-rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462133e5e48468096f71866c703c1c0e840bee94;p=thirdparty%2Fasterisk.git format_wav: replace ast_log(LOG_DEBUG, ...) by ast_debug(1, ...) Each playback of WAV files results in logging "Skipping unknown block 'LIST'". To prevent unnecessary flooding of this DEBUG log this patch replaces ast_log(LOG_DEBUG, ...) by ast_debug(1, ...). Change-Id: Iaa09cf19c5348a05385518fdb8cb181b45fe05f0 --- diff --git a/formats/format_wav.c b/formats/format_wav.c index 886c8c1378..afb452b6d8 100644 --- a/formats/format_wav.c +++ b/formats/format_wav.c @@ -189,7 +189,7 @@ static int check_header(FILE *f, int hz) } if(memcmp(buf, "data", 4) == 0 ) break; - ast_log(LOG_DEBUG, "Skipping unknown block '%.4s'\n", buf); + ast_debug(1, "Skipping unknown block '%.4s'\n", buf); if (fseek(f,data,SEEK_CUR) == -1 ) { ast_log(LOG_WARNING, "Failed to skip '%.4s' block: %d\n", buf, data); return -1;