Add refclock trace messages

This commit is contained in:
Miroslav Lichvar
2013-11-26 11:41:23 +01:00
parent bc361c48a0
commit c00d93a897
3 changed files with 41 additions and 12 deletions

View File

@@ -100,8 +100,9 @@ static int shm_poll(RCL_Instance instance)
if ((t.mode == 1 && t.count != shm->count) ||
!(t.mode == 0 || t.mode == 1) || !t.valid) {
#if 0
LOG(LOGS_INFO, LOGF_Refclock, "sample ignored mode: %d count: %d valid: %d", t.mode, t.count, t.valid);
#ifdef TRACEON
LOG(LOGS_INFO, LOGF_Refclock, "SHM sample ignored mode=%d count=%d valid=%d",
t.mode, t.count, t.valid);
#endif
return 0;
}