mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
ratelimit: fix log levels of log suppression messages
When logging a suppression message do so on the same log level as the
suppressed messages.
Cherry picked by Colin Guthrie from ec5a785712
with a couple of additional changes due to extra limiting in master
that was not present in stable-queue.
This commit is contained in:
parent
a509f10f95
commit
1250b5d735
13 changed files with 19 additions and 18 deletions
|
|
@ -440,7 +440,7 @@ static size_t check_left_to_play(struct userdata *u, size_t n_bytes, pa_bool_t o
|
|||
#endif
|
||||
|
||||
if (!u->first && !u->after_rewind)
|
||||
if (pa_log_ratelimit())
|
||||
if (pa_log_ratelimit(PA_LOG_INFO))
|
||||
pa_log_info("Underrun!");
|
||||
}
|
||||
|
||||
|
|
@ -1511,7 +1511,7 @@ static void thread_func(void *userdata) {
|
|||
* we have filled the buffer at least once
|
||||
* completely.*/
|
||||
|
||||
if (pa_log_ratelimit())
|
||||
if (pa_log_ratelimit(PA_LOG_DEBUG))
|
||||
pa_log_debug("Cutting sleep time for the initial iterations by half.");
|
||||
sleep_usec /= 2;
|
||||
}
|
||||
|
|
@ -1575,7 +1575,7 @@ static void thread_func(void *userdata) {
|
|||
|
||||
u->first = TRUE;
|
||||
u->since_start = 0;
|
||||
} else if (revents && u->use_tsched && pa_log_ratelimit())
|
||||
} else if (revents && u->use_tsched && pa_log_ratelimit(PA_LOG_DEBUG))
|
||||
pa_log_debug("Wakeup from ALSA!");
|
||||
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -428,7 +428,7 @@ static size_t check_left_to_record(struct userdata *u, size_t n_bytes, pa_bool_t
|
|||
PA_DEBUG_TRAP;
|
||||
#endif
|
||||
|
||||
if (pa_log_ratelimit())
|
||||
if (pa_log_ratelimit(PA_LOG_INFO))
|
||||
pa_log_info("Overrun!");
|
||||
}
|
||||
|
||||
|
|
@ -1323,7 +1323,7 @@ static void thread_func(void *userdata) {
|
|||
goto fail;
|
||||
|
||||
u->first = TRUE;
|
||||
} else if (revents && u->use_tsched && pa_log_ratelimit())
|
||||
} else if (revents && u->use_tsched && pa_log_ratelimit(PA_LOG_DEBUG))
|
||||
pa_log_debug("Wakeup from ALSA!");
|
||||
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ static void verify_access(struct userdata *u, struct device *d) {
|
|||
* during opening was canceled by a "try again"
|
||||
* failure or a "fatal" failure. */
|
||||
|
||||
if (pa_ratelimit_test(&d->ratelimit)) {
|
||||
if (pa_ratelimit_test(&d->ratelimit, PA_LOG_DEBUG)) {
|
||||
pa_log_debug("Loading module-alsa-card with arguments '%s'", d->args);
|
||||
m = pa_module_load(u->core, "module-alsa-card", d->args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue