From 1250b5d735129c3e04c45484f80f99cdb12f39a1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 22 Jan 2011 01:08:36 +0100 Subject: 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 ec5a7857127a1b3b9c5517c4a70a9b2c8aab35ca with a couple of additional changes due to extra limiting in master that was not present in stable-queue. --- src/pulsecore/ratelimit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pulsecore/ratelimit.h') diff --git a/src/pulsecore/ratelimit.h b/src/pulsecore/ratelimit.h index 9857a291..9a36195d 100644 --- a/src/pulsecore/ratelimit.h +++ b/src/pulsecore/ratelimit.h @@ -23,6 +23,7 @@ ***/ #include +#include #include typedef struct pa_ratelimit { @@ -51,6 +52,6 @@ typedef struct pa_ratelimit { r->begin = 0; \ } while (FALSE); -pa_bool_t pa_ratelimit_test(pa_ratelimit *r); +pa_bool_t pa_ratelimit_test(pa_ratelimit *r, pa_log_level_t t); #endif -- cgit