Fix some warnings caused by size_t having varying size.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@641 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-03-31 08:54:24 +00:00
parent 3285403d3c
commit acb96c96fd
4 changed files with 5 additions and 5 deletions

View file

@ -405,7 +405,7 @@ int pa__init(pa_core *c, pa_module*m) {
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);

View file

@ -396,7 +396,7 @@ int pa__init(pa_core *c, pa_module*m) {
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;

View file

@ -294,7 +294,7 @@ char *pa_scache_list_to_string(pa_core *c) {
"\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"
@ -303,7 +303,7 @@ char *pa_scache_list_to_string(pa_core *c) {
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",

View file

@ -67,7 +67,7 @@ int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
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;