diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-22 01:08:36 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2011-01-31 11:36:24 +0000 |
commit | 1250b5d735129c3e04c45484f80f99cdb12f39a1 (patch) | |
tree | 0d99e99ee91ec03d5369701c1deb412b3815b707 /src/pulsecore/ratelimit.h | |
parent | a509f10f95448fbbd209f2b4903b7c5441886711 (diff) |
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.
Diffstat (limited to 'src/pulsecore/ratelimit.h')
-rw-r--r-- | src/pulsecore/ratelimit.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <pulse/sample.h> +#include <pulsecore/log.h> #include <pulsecore/macro.h> 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 |