From 9d15fd7e3a77282cec660eed54f46c3282bf8f29 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 2 Nov 2019 14:47:15 +0100 Subject: [PATCH 1/1] vss: Improve error diagnostics. Unless in debug loglevel, para_server prints Nov 01 17:06:03 (4) (18596) open_next_audio_file: key not found in rbtree Nov 01 17:06:03 (4) (18595) recv_afs_result: did not receive open fd from afs which does not include information about what was actually received. --- vss.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vss.c b/vss.c index 73c72311..023b2c1d 100644 --- a/vss.c +++ b/vss.c @@ -959,11 +959,12 @@ static void recv_afs_result(struct vss_task *vsst, fd_set *rfds) if (ret < 0) goto err; vsst->afsss = AFS_SOCKET_READY; - PARA_DEBUG_LOG("fd: %d, code: %u, shmid: %u\n", passed_fd, afs_code, - afs_data); ret = -E_NOFD; - if (afs_code != NEXT_AUDIO_FILE) + if (afs_code != NEXT_AUDIO_FILE) { + PARA_ERROR_LOG("afs code: %u, expected: %d\n", afs_code, + NEXT_AUDIO_FILE); goto err; + } if (passed_fd < 0) goto err; shmid = afs_data; -- 2.39.2