u->frame_size = frame_size;
u->fragment_size = period_size;
- pa_log_info(__FILE__": using %u fragments of size %u bytes.", periods, u->fragment_size);
+ pa_log_info(__FILE__": using %u fragments of size %lu bytes.", periods, (long unsigned)u->fragment_size);
u->silence.memblock = pa_memblock_new(u->silence.length = u->fragment_size, c->memblock_stat);
assert(u->silence.memblock);
u->frame_size = frame_size;
u->fragment_size = period_size;
- pa_log(__FILE__": using %u fragments of size %u bytes.", periods, u->fragment_size);
+ pa_log(__FILE__": using %u fragments of size %lu bytes.", periods, (long unsigned)u->fragment_size);
u->memchunk.memblock = NULL;
u->memchunk.index = u->memchunk.length = 0;
"\tindex: <%u>\n"
"\tsample spec: <%s>\n"
"\tchannel map: <%s>\n"
- "\tlength: <%u>\n"
+ "\tlength: <%lu>\n"
"\tduration: <%0.1fs>\n"
"\tvolume: <%s>\n"
"\tlazy: %s\n"
e->index,
ss,
cm,
- e->memchunk.memblock ? e->memchunk.length : 0,
+ (long unsigned)(e->memchunk.memblock ? e->memchunk.length : 0),
l,
pa_cvolume_snprint(cv, sizeof(cv), &e->volume),
e->lazy ? "yes" : "no",
c.length = r;
pa_mcalign_push(a, &c);
- fprintf(stderr, "Read %d bytes\n", r);
+ fprintf(stderr, "Read %ld bytes\n", (long)r);
c.index += r;