[PATCH] pulsecore/filter/lfe-filter.c: Use length modifier `z` for type `size_t`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2015-05-03 at 13:23 +0200, Paul Menzel wrote:
> Date: Sun, 3 May 2015 12:52:22 +0200
> 
> 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",
>              ^
> ---
>  src/pulsecore/filter/lfe-filter.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> 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);

Thanks! Applied.

-- 
Tanu



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux