[pulseaudio-commits] src/pulsecore

Tanu Kaskinen tanuk at kemper.freedesktop.org
Fri May 8 02:17:12 PDT 2015


 src/pulsecore/filter/lfe-filter.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7922851152170c1d875d7a59fbdf35043516c156
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date:   Sun May 3 12:52:22 2015 +0200

    lfe-filter: Use length modifier `z` for type `size_t`
    
    Fix the following warnings.
    
              CC       pulsecore/filter/libpulsecore_6.0_la-lfe-filter.lo
            pulsecore/filter/lfe-filter.c: In function 'pa_lfe_filter_rewind':
            pulsecore/filter/lfe-filter.c:179:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=]
                     pa_log_debug("Rewinding LFE filter %lu samples to position %lli. No saved state found", samples, (long long) f->index);
                     ^
            pulsecore/filter/lfe-filter.c:183:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=]
                 pa_log_debug("Rewinding LFE filter %lu samples to position %lli. Found saved state at position %lli",
                 ^
              CC       pulsecore/filter/libpulsecore_6.0_la-biquad.lo  CC       pulsecore/filter/libpulsecore_6.0_la-lfe-filter.lo
            pulsecore/filter/lfe-filter.c: In function 'pa_lfe_filter_rewind':
            pulsecore/filter/lfe-filter.c:179:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=]
                     pa_log_debug("Rewinding LFE filter %lu samples to position %lli. No saved state found", samples, (long long) f->index);
                     ^
            pulsecore/filter/lfe-filter.c:183:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=]
                 pa_log_debug("Rewinding LFE filter %lu samples to position %lli. Found saved state at position %lli",
                 ^

diff --git a/src/pulsecore/filter/lfe-filter.c b/src/pulsecore/filter/lfe-filter.c
index ab81eb7..8c79b55 100644
--- a/src/pulsecore/filter/lfe-filter.c
+++ b/src/pulsecore/filter/lfe-filter.c
@@ -176,11 +176,11 @@ void pa_lfe_filter_rewind(pa_lfe_filter_t *f, size_t amount) {
             s = i;
     }
     if (s == NULL) {
-        pa_log_debug("Rewinding LFE filter %lu samples to position %lli. No saved state found", samples, (long long) f->index);
+        pa_log_debug("Rewinding LFE filter %zu samples to position %lli. No saved state found", samples, (long long) f->index);
         pa_lfe_filter_update_rate(f, f->ss.rate);
         return;
     }
-    pa_log_debug("Rewinding LFE filter %lu samples to position %lli. Found saved state at position %lli",
+    pa_log_debug("Rewinding LFE filter %zu samples to position %lli. Found saved state at position %lli",
         samples, (long long) f->index, (long long) s->index);
     memcpy(f->lr4, s->lr4, sizeof(struct lr4) * f->cm.channels);
 



More information about the pulseaudio-commits mailing list