Skip to content

Commit f0346f2

Browse files
Fix: change the log level of late frame drops
Degrade the log level of late frame drops from NOTICE to DBG. As the statistics every 10s will show them.
1 parent c0676b4 commit f0346f2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/src/st2110/pipeline/st20_pipeline_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static bool tx_st20p_if_frame_late(struct st20p_tx_ctx* ctx,
125125
mt_pthread_mutex_unlock(&ctx->lock);
126126

127127
uint64_t late_ns = cur_tai - frame_tai;
128-
notice("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
128+
dbg("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
129129
"ns), cur %" PRIu64 " frame %" PRIu64 "\n",
130130
__func__, ctx->idx, framebuff->seq_number, late_ns, frame_period_ns, cur_tai,
131131
frame_tai);

lib/src/st2110/pipeline/st22_pipeline_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static bool tx_st22p_if_frame_late(struct st22p_tx_ctx* ctx,
136136
mt_pthread_mutex_unlock(&ctx->lock);
137137

138138
uint64_t late_ns = cur_tai - frame_tai;
139-
notice("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
139+
dbg("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
140140
"ns), cur %" PRIu64 " frame %" PRIu64 "\n",
141141
__func__, ctx->idx, framebuff->seq_number, late_ns, frame_period_ns, cur_tai,
142142
frame_tai);

lib/src/st2110/pipeline/st30_pipeline_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static bool tx_st30p_if_frame_late(struct st30p_tx_ctx* ctx,
106106
mt_pthread_mutex_unlock(&ctx->lock);
107107

108108
uint64_t late_ns = cur_tai - frame_tai;
109-
notice("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
109+
dbg("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
110110
"ns), cur %" PRIu64 " frame %" PRIu64 "\n",
111111
__func__, ctx->idx, framebuff->seq_number, late_ns, frame_period_ns, cur_tai,
112112
frame_tai);

lib/src/st2110/pipeline/st40_pipeline_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static bool tx_st40p_if_frame_late(struct st40p_tx_ctx* ctx,
109109
mt_pthread_mutex_unlock(&ctx->lock);
110110

111111
uint64_t late_ns = cur_tai - frame_tai;
112-
notice("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
112+
dbg("%s(%d), frame %u drop late by %" PRIu64 "ns (> period %" PRIu64
113113
"ns), cur %" PRIu64 " frame %" PRIu64 "\n",
114114
__func__, ctx->idx, framebuff->seq_number, late_ns, frame_period_ns, cur_tai,
115115
frame_tai);

0 commit comments

Comments
 (0)