avsync-lib: CF1 support syslog and logcat [1/1]

PD#TV-61176

Problem:
Some platforms is not stdout/stderr friendly. Any log can cause
scheuding issue for AVsync.

Solution:
Add compile options for syslog and logcat support

Verify:
T5D + Roxton

Change-Id: I723b4fd0560e4d71adee64fe7961580506bf694a
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
diff --git a/src/avsync.c b/src/avsync.c
index a195c5c..5f210a0 100644
--- a/src/avsync.c
+++ b/src/avsync.c
@@ -485,7 +485,8 @@
     if (!avsync || !avsync->fd)
         return -1;
 
-    log_info("[%d]policy %u --> %u, timeout %d --> %d", avsync->start_policy, st_policy->policy, avsync->timeout, st_policy->timeout);
+    log_info("[%d]policy %u --> %u, timeout %d --> %d", avsync->session_id,
+        avsync->start_policy, st_policy->policy, avsync->timeout, st_policy->timeout);
     if (LIVE_MODE(avsync->mode) &&
         st_policy->policy != AV_SYNC_START_ASAP) {
         log_error("policy %d not supported in live mode", st_policy->policy);